about summary refs log tree commit diff
path: root/pkgs/applications/audio
diff options
context:
space:
mode:
authorSergei Trofimovich <slyich@gmail.com>2024-01-13 22:00:56 +0000
committerSergei Trofimovich <slyich@gmail.com>2024-01-13 22:00:56 +0000
commit50a49047e1ae37878e34b62abe5feee8eb84bca4 (patch)
treec1ea4f7a013994c9b07e8f030f00f54e259bf666 /pkgs/applications/audio
parent5f9b9b9fea9c7c7c20faaa7e3f51aa378ea9b9c4 (diff)
seq66: enable Qt wrapper to fix plugin loading
Without the change `qseq66` fails to load as:

    $ qseq66
    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.

While at it added `mainProgram`.
Diffstat (limited to 'pkgs/applications/audio')
-rw-r--r--pkgs/applications/audio/seq66/default.nix7
1 files changed, 3 insertions, 4 deletions
diff --git a/pkgs/applications/audio/seq66/default.nix b/pkgs/applications/audio/seq66/default.nix
index 14fc4075e3776..8f47ab0b6a20d 100644
--- a/pkgs/applications/audio/seq66/default.nix
+++ b/pkgs/applications/audio/seq66/default.nix
@@ -1,5 +1,5 @@
 { lib, stdenv, fetchFromGitHub, autoreconfHook, pkg-config, qttools, which
-, alsa-lib, libjack2, liblo, qtbase
+, alsa-lib, libjack2, liblo, qtbase, wrapQtAppsHook
 }:
 
 stdenv.mkDerivation rec {
@@ -13,7 +13,7 @@ stdenv.mkDerivation rec {
     sha256 = "1jvra1wzlycfpvffnqidk264zw6fyl4fsghkw5256ldk22aalmq9";
   };
 
-  nativeBuildInputs = [ autoreconfHook pkg-config qttools which ];
+  nativeBuildInputs = [ autoreconfHook pkg-config qttools which wrapQtAppsHook ];
 
   buildInputs = [ alsa-lib libjack2 liblo qtbase ];
 
@@ -29,13 +29,12 @@ stdenv.mkDerivation rec {
 
   enableParallelBuilding = true;
 
-  dontWrapQtApps = true;
-
   meta = with lib; {
     homepage = "https://github.com/ahlstromcj/seq66";
     description = "Loop based midi sequencer with Qt GUI derived from seq24 and sequencer64";
     license = licenses.gpl2Plus;
     maintainers = with maintainers; [ orivej ];
+    mainProgram = "qseq66";
     platforms = platforms.linux;
   };
 }