Unverified Commit 8ea3d596 authored by eljamm's avatar eljamm
Browse files

tunefish: small improvements

- use finalAttrs
- remove `with lib;` from `meta`
- add install phase hooks
parent a0f69133
Loading
Loading
Loading
Loading
+13 −9
Original line number Diff line number Diff line
@@ -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" ];
  };
}
})