summary refs log tree commit diff
diff options
context:
space:
mode:
authorOrivej Desh <orivej@gmx.fr>2023-03-29 07:12:44 +0000
committerOrivej Desh <orivej@gmx.fr>2023-03-29 07:13:30 +0000
commitf398b52c5b3923393c3fedfc1fffea76c2a424b8 (patch)
treed51fa01d12d0baaa6f4d368e24673e98e99ad908
parent4a6f9a7bd647d21ff2629cd94ae8e24a3743b8e2 (diff)
downloadnixpkgs-f398b52c5b3923393c3fedfc1fffea76c2a424b8.tar
nixpkgs-f398b52c5b3923393c3fedfc1fffea76c2a424b8.tar.gz
nixpkgs-f398b52c5b3923393c3fedfc1fffea76c2a424b8.tar.bz2
nixpkgs-f398b52c5b3923393c3fedfc1fffea76c2a424b8.tar.lz
nixpkgs-f398b52c5b3923393c3fedfc1fffea76c2a424b8.tar.xz
nixpkgs-f398b52c5b3923393c3fedfc1fffea76c2a424b8.tar.zst
nixpkgs-f398b52c5b3923393c3fedfc1fffea76c2a424b8.zip
setbfree: build GUI
-rw-r--r--pkgs/applications/audio/setbfree/default.nix15
1 files changed, 12 insertions, 3 deletions
diff --git a/pkgs/applications/audio/setbfree/default.nix b/pkgs/applications/audio/setbfree/default.nix
index ce2b17caf86..1d43d11c60c 100644
--- a/pkgs/applications/audio/setbfree/default.nix
+++ b/pkgs/applications/audio/setbfree/default.nix
@@ -14,9 +14,9 @@ stdenv.mkDerivation  rec {
   };
 
   postPatch = ''
-    sed 's#/usr/local#$(out)#g' -i common.mak
-    sed 's#/usr/share/fonts/truetype/ttf-bitstream-vera#${ttf_bitstream_vera}/share/fonts/truetype#g' \
-      -i b_synth/Makefile
+    substituteInPlace common.mak \
+      --replace /usr/local "$out" \
+      --replace /usr/share/fonts/truetype/ttf-bitstream-vera "${ttf_bitstream_vera}/share/fonts/truetype"
   '';
 
   nativeBuildInputs = [ pkg-config ];
@@ -25,6 +25,15 @@ stdenv.mkDerivation  rec {
     ttf_bitstream_vera
   ];
 
+  doInstallCheck = true;
+
+  installCheckPhase = ''(
+    set -x
+    test -e $out/bin/setBfreeUI
+  )'';
+
+  enableParallelBuilding = true;
+
   meta = with lib; {
     description = "A DSP tonewheel organ emulator";
     homepage = "https://setbfree.org";