qtstyleplugin-kvantum: add suffix to Qt 6 variant

Signed-off-by: Sefa Eyeoglu <contact@scrumplex.net>
This commit is contained in:
Sefa Eyeoglu 2023-08-03 17:01:28 +02:00
parent 20d9d989fd
commit cd135d4231
No known key found for this signature in database
GPG key ID: E13DFD4B47127951

View file

@ -14,9 +14,11 @@
, wrapQtAppsHook
, gitUpdater
}:
let
isQt6 = lib.versionAtLeast qtbase.version "6";
in
stdenv.mkDerivation rec {
pname = "qtstyleplugin-kvantum";
pname = "qtstyleplugin-kvantum${lib.optionalString isQt6 "6"}";
version = "1.0.10";
src = fetchFromGitHub {
@ -37,8 +39,8 @@ stdenv.mkDerivation rec {
qtsvg
libX11
libXext
] ++ lib.optionals (lib.versionOlder qtbase.version "6") [ qtx11extras kwindowsystem ]
++ lib.optional (lib.versionAtLeast qtbase.version "6") qtwayland;
] ++ lib.optionals (!isQt6) [ qtx11extras kwindowsystem ]
++ lib.optional isQt6 qtwayland;
sourceRoot = "source/Kvantum";