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`.
This commit is contained in:
Sergei Trofimovich 2024-01-13 22:00:56 +00:00
parent 5f9b9b9fea
commit 50a49047e1

View file

@ -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;
};
}