summary refs log tree commit diff
path: root/pkgs/applications/audio/muse
diff options
context:
space:
mode:
authorAnders Kaseorg <andersk@mit.edu>2019-12-09 15:30:26 -0800
committerAnders Kaseorg <andersk@mit.edu>2020-01-06 18:16:29 -0800
commit1bcb6fb02704e1ae3046eadd99b40be607d4cb49 (patch)
treee1b6056924109fe2a7869a336f3a894ada0df606 /pkgs/applications/audio/muse
parent2e8fc97dbfacc1178ae846ab31210539f7a958f0 (diff)
downloadnixpkgs-1bcb6fb02704e1ae3046eadd99b40be607d4cb49.tar
nixpkgs-1bcb6fb02704e1ae3046eadd99b40be607d4cb49.tar.gz
nixpkgs-1bcb6fb02704e1ae3046eadd99b40be607d4cb49.tar.bz2
nixpkgs-1bcb6fb02704e1ae3046eadd99b40be607d4cb49.tar.lz
nixpkgs-1bcb6fb02704e1ae3046eadd99b40be607d4cb49.tar.xz
nixpkgs-1bcb6fb02704e1ae3046eadd99b40be607d4cb49.tar.zst
nixpkgs-1bcb6fb02704e1ae3046eadd99b40be607d4cb49.zip
muse: Use wrapQtAppsHook.
Fixes this error:

qt.qpa.plugin: Could not find the Qt platform plugin "xcb" in ""
This application failed to start because no Qt platform plugin could
be initialized. Reinstalling the application may fix this problem.

Aborted (core dumped)

Also, remove the unnecessary build input `gitFull`, and enable
parallel building.

Signed-off-by: Anders Kaseorg <andersk@mit.edu>
Diffstat (limited to 'pkgs/applications/audio/muse')
-rw-r--r--pkgs/applications/audio/muse/default.nix24
1 files changed, 7 insertions, 17 deletions
diff --git a/pkgs/applications/audio/muse/default.nix b/pkgs/applications/audio/muse/default.nix
index 372c8faf773..f1fad05bece 100644
--- a/pkgs/applications/audio/muse/default.nix
+++ b/pkgs/applications/audio/muse/default.nix
@@ -1,7 +1,9 @@
 { stdenv
 , fetchFromGitHub
 , libjack2
-, qt5
+, wrapQtAppsHook
+, qtsvg
+, qttools
 , cmake
 , libsndfile
 , libsamplerate
@@ -13,7 +15,6 @@
 , dssi
 , liblo
 , pkgconfig
-, gitAndTools
 }:
 
 stdenv.mkDerivation {
@@ -45,14 +46,14 @@ stdenv.mkDerivation {
 
   nativeBuildInputs = [
     pkgconfig
-    gitAndTools.gitFull
+    wrapQtAppsHook
+    qttools
+    cmake
   ];
 
   buildInputs = [
     libjack2
-    qt5.qtsvg
-    qt5.qttools
-    cmake
+    qtsvg
     libsndfile
     libsamplerate
     ladspaH
@@ -65,15 +66,4 @@ stdenv.mkDerivation {
   ];
 
   sourceRoot = "source/muse3";
-
-  buildPhase = ''
-    cd ..
-    bash compile_muse.sh
-  '';
-
-  installPhase = ''
-    mkdir $out
-    cd build
-    make install
-  '';
 }