From 8923d68d87b3a74d269cd660885a31f046e7b240 Mon Sep 17 00:00:00 2001 From: Natsu Kagami Date: Mon, 19 Jun 2023 02:48:14 +0200 Subject: [PATCH] Add ttaenc and touhou music tools --- packages/common/default.nix | 1 + packages/common/ttaenc.nix | 22 ++++++++++++++++++++++ 2 files changed, 23 insertions(+) create mode 100644 packages/common/ttaenc.nix 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 + ''; +}