about summary refs log tree commit diff
diff options
context:
space:
mode:
authorWeijia Wang <9713184+wegank@users.noreply.github.com>2023-03-29 11:35:20 +0300
committerGitHub <noreply@github.com>2023-03-29 11:35:20 +0300
commit92da71ad117c4e2666d54e328f58543fb1e68783 (patch)
treeeaefd018f7e772d2b20017633c36eb2fc5b04c2a
parent84a8ceb383cbf481edb2a070ed96c1cc38c1fa53 (diff)
parentf398b52c5b3923393c3fedfc1fffea76c2a424b8 (diff)
Merge pull request #223707 from orivej/setbfree
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 ce2b17caf86d7..1d43d11c60cfd 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";