From 50a49047e1ae37878e34b62abe5feee8eb84bca4 Mon Sep 17 00:00:00 2001 From: Sergei Trofimovich Date: Sat, 13 Jan 2024 22:00:56 +0000 Subject: [PATCH] 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`. --- pkgs/applications/audio/seq66/default.nix | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/pkgs/applications/audio/seq66/default.nix b/pkgs/applications/audio/seq66/default.nix index 14fc4075e377..8f47ab0b6a20 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; }; }