Add ttaenc and touhou music tools

This commit is contained in:
Natsu Kagami 2023-06-19 02:48:14 +02:00
parent d8561d1191
commit 8923d68d87
Signed by: nki
GPG key ID: 55A032EB38B49ADB
2 changed files with 23 additions and 0 deletions

View file

@ -1,3 +1,4 @@
final: prev: {
epfl-cups-drivers = final.callPackage ./epfl-cups-drivers { };
ttaenc = final.callPackage ./ttaenc.nix { };
}

View file

@ -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
'';
}