From 1bcb6fb02704e1ae3046eadd99b40be607d4cb49 Mon Sep 17 00:00:00 2001 From: Anders Kaseorg Date: Mon, 9 Dec 2019 15:30:26 -0800 Subject: [PATCH] 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 --- pkgs/applications/audio/muse/default.nix | 24 +++++++----------------- pkgs/top-level/all-packages.nix | 2 +- 2 files changed, 8 insertions(+), 18 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 - ''; } diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 9c977dfddfa..f21725580c2 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -24754,7 +24754,7 @@ in mupen64plus = callPackage ../misc/emulators/mupen64plus { }; - muse = callPackage ../applications/audio/muse { }; + muse = libsForQt5.callPackage ../applications/audio/muse { }; musly = callPackage ../applications/audio/musly { };