diff --git a/packages/common/default.nix b/packages/common/default.nix index 0c493ed..eb5a78a 100644 --- a/packages/common/default.nix +++ b/packages/common/default.nix @@ -1,3 +1,4 @@ final: prev: { epfl-cups-drivers = final.callPackage ./epfl-cups-drivers { }; + ttaenc = final.callPackage ./ttaenc.nix { }; } diff --git a/packages/common/ttaenc.nix b/packages/common/ttaenc.nix new file mode 100644 index 0000000..e4cd61b --- /dev/null +++ b/packages/common/ttaenc.nix @@ -0,0 +1,22 @@ +{ stdenv, lib }: stdenv.mkDerivation rec { + name = "ttaenc"; + version = "3.4.1"; + + src = builtins.fetchTarball { + url = "http://downloads.sourceforge.net/tta/${name}-${version}-src.tgz"; + sha256 = "sha256:09yg0564wah1r6h9c5948sr7pw89aszwvl1rq6pdkm54yn05myqv"; + }; + + installPhase = '' + runHook preInstall + + mkdir -p $out/bin + + make install INSDIR="$out/bin" + # Copy docs + install -dm755 "$out/share/doc/${name}" + install -m644 "ChangeLog-${version}" README "$out/share/doc/${name}" + + runHook postInstall + ''; +}