Unverified Commit cd135d42 authored by Sefa Eyeoglu's avatar Sefa Eyeoglu
Browse files

qtstyleplugin-kvantum: add suffix to Qt 6 variant

parent 20d9d989
Loading
Loading
Loading
Loading
+6 −4
Original line number Diff line number Diff line
@@ -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";