tunefish: small improvements

- use finalAttrs
- remove `with lib;` from `meta`
- add install phase hooks
This commit is contained in:
eljamm
2025-04-06 13:10:06 +02:00
parent a0f69133a6
commit 8ea3d596a7
+13 -9
View File
@@ -15,7 +15,7 @@
webkitgtk_4_0,
}:
stdenv.mkDerivation {
stdenv.mkDerivation (finalAttrs: {
pname = "tunefish";
version = "0-unstable-2021-12-19";
@@ -31,6 +31,7 @@ stdenv.mkDerivation {
pkg-config
python3
];
buildInputs = [
alsa-lib
curl
@@ -43,16 +44,19 @@ stdenv.mkDerivation {
webkitgtk_4_0
];
postPatch = ''
patchShebangs src/tunefish4/generate-lv2-ttl.py
'';
makeFlags = [
"-C"
"src/tunefish4/Builds/LinuxMakefile"
"CONFIG=Release"
];
# silences build warnings
HOME = "/build";
postPatch = ''
patchShebangs src/tunefish4/generate-lv2-ttl.py
'';
installPhase = ''
runHook preInstall
@@ -69,11 +73,11 @@ stdenv.mkDerivation {
enableParallelBuilding = true;
meta = with lib; {
meta = {
homepage = "https://tunefish-synth.com/";
description = "Virtual analog synthesizer LV2 plugin";
license = licenses.gpl3Plus;
maintainers = with maintainers; [ orivej ];
license = lib.licenses.gpl3Plus;
maintainers = with lib.maintainers; [ orivej ];
platforms = [ "x86_64-linux" ];
};
}
})