20 isQt6 = lib.versionAtLeast qtbase.version "6";
22 stdenv.mkDerivation rec {
23 pname = "qtstyleplugin-kvantum${lib.optionalString isQt6 "6"}";
26 src = fetchFromGitHub {
30 sha256 = "48Blio8qHLmXSKG0c1tphXSfiwQXs0Xqwxe187nM3Ro=";
44 ] ++ lib.optionals (!isQt6) [ qtx11extras kwindowsystem ]
45 ++ lib.optional isQt6 qtwayland;
47 sourceRoot = "${src.name}/Kvantum";
51 # add xdg dirs support
52 url = "https://github.com/tsujan/Kvantum/commit/01989083f9ee75a013c2654e760efd0a1dea4a68.patch";
53 hash = "sha256-HPx+p4Iek/Me78olty1fA0dUNceK7bwOlTYIcQu8ycc=";
60 substituteInPlace style/style.pro \
61 --replace "\$\$[QT_INSTALL_PLUGINS]" "$out/$qtPluginPrefix"
64 postInstall = lib.optionalString isQt6 ''
65 # make default Kvantum themes available for Qt 6 apps
67 ln -s "${qt5Kvantum}/share/Kvantum" "$out/share/Kvantum"
70 passthru.updateScript = gitUpdater {
75 description = "SVG-based Qt5 theme engine plus a config tool and extra themes";
76 homepage = "https://github.com/tsujan/Kvantum";
77 license = licenses.gpl3Plus;
78 platforms = platforms.linux;
79 maintainers = with maintainers; [ romildo Scrumplex ];