qtstyleplugin-kvantum: 1.0.10 -> 1.1.0 (#297048)

Signed-off-by: Sefa Eyeoglu <contact@scrumplex.net>

authored by scrumplex.net and committed by GitHub 411f1f7b 8621265c

+28 -21
+24 -17
pkgs/development/libraries/qtstyleplugin-kvantum/default.nix
··· 2 2 , stdenv 3 3 , fetchFromGitHub 4 4 , fetchpatch 5 + , cmake 5 6 , qmake 6 7 , qtbase 7 8 , qtsvg ··· 14 15 , wrapQtAppsHook 15 16 , gitUpdater 16 17 17 - , qt5Kvantum ? null 18 + , qt6Kvantum ? null 18 19 }: 19 20 let 20 - isQt6 = lib.versionAtLeast qtbase.version "6"; 21 + isQt5 = lib.versionOlder qtbase.version "6"; 21 22 in 22 - stdenv.mkDerivation rec { 23 - pname = "qtstyleplugin-kvantum${lib.optionalString isQt6 "6"}"; 24 - version = "1.0.10"; 23 + stdenv.mkDerivation (finalAttrs: { 24 + pname = "qtstyleplugin-kvantum${lib.optionalString isQt5 "5"}"; 25 + version = "1.1.0"; 25 26 26 27 src = fetchFromGitHub { 27 28 owner = "tsujan"; 28 29 repo = "Kvantum"; 29 - rev = "V${version}"; 30 - sha256 = "48Blio8qHLmXSKG0c1tphXSfiwQXs0Xqwxe187nM3Ro="; 30 + rev = "V${finalAttrs.version}"; 31 + hash = "sha256-i+QjVPSzWNPVQmQkB+u/3Wrvqqoz5OIjRdyZKXzxZh4="; 31 32 }; 32 33 33 34 nativeBuildInputs = [ 35 + cmake 34 36 qmake 35 37 qttools 36 38 wrapQtAppsHook ··· 41 43 qtsvg 42 44 libX11 43 45 libXext 44 - ] ++ lib.optionals (!isQt6) [ qtx11extras kwindowsystem ] 45 - ++ lib.optional isQt6 qtwayland; 46 + kwindowsystem 47 + ] ++ lib.optionals isQt5 [ qtx11extras ] 48 + ++ lib.optionals (!isQt5) [ qtwayland ]; 46 49 47 - sourceRoot = "${src.name}/Kvantum"; 50 + sourceRoot = "${finalAttrs.src.name}/Kvantum"; 48 51 49 52 patches = [ 50 53 (fetchpatch { ··· 56 59 ]; 57 60 58 61 postPatch = '' 59 - # Fix plugin dir 60 - substituteInPlace style/style.pro \ 61 - --replace "\$\$[QT_INSTALL_PLUGINS]" "$out/$qtPluginPrefix" 62 + substituteInPlace style/CMakeLists.txt \ 63 + --replace-fail '"''${_Qt6_PLUGIN_INSTALL_DIR}/' "\"$out/$qtPluginPrefix/" \ 64 + --replace-fail '"''${_Qt5_PLUGIN_INSTALL_DIR}/' "\"$out/$qtPluginPrefix/" 62 65 ''; 63 66 64 - postInstall = lib.optionalString isQt6 '' 65 - # make default Kvantum themes available for Qt 6 apps 67 + cmakeFlags = [ 68 + (lib.cmakeBool "ENABLE_QT5" isQt5) 69 + ]; 70 + 71 + postInstall = lib.optionalString isQt5 '' 72 + # make default Kvantum themes available for Qt 5 apps 66 73 mkdir -p "$out/share" 67 - ln -s "${qt5Kvantum}/share/Kvantum" "$out/share/Kvantum" 74 + ln -s "${qt6Kvantum}/share/Kvantum" "$out/share/Kvantum" 68 75 ''; 69 76 70 77 passthru.updateScript = gitUpdater { ··· 78 85 platforms = platforms.linux; 79 86 maintainers = with maintainers; [ romildo Scrumplex ]; 80 87 }; 81 - } 88 + })
+3 -1
pkgs/top-level/qt5-packages.nix
··· 251 251 252 252 qtstyleplugins = callPackage ../development/libraries/qtstyleplugins { }; 253 253 254 - qtstyleplugin-kvantum = callPackage ../development/libraries/qtstyleplugin-kvantum { }; 254 + qtstyleplugin-kvantum = callPackage ../development/libraries/qtstyleplugin-kvantum { 255 + qt6Kvantum = pkgs.qt6Packages.qtstyleplugin-kvantum; 256 + }; 255 257 256 258 quazip = callPackage ../development/libraries/quazip { }; 257 259
+1 -3
pkgs/top-level/qt6-packages.nix
··· 79 79 80 80 qtpbfimageplugin = callPackage ../development/libraries/qtpbfimageplugin { }; 81 81 82 - qtstyleplugin-kvantum = callPackage ../development/libraries/qtstyleplugin-kvantum { 83 - qt5Kvantum = pkgs.libsForQt5.qtstyleplugin-kvantum; 84 - }; 82 + qtstyleplugin-kvantum = kdePackages.callPackage ../development/libraries/qtstyleplugin-kvantum { }; 85 83 86 84 qtutilities = callPackage ../development/libraries/qtutilities { }; 87 85