2021-02-05 17:12:51 +00:00
|
|
|
{ lib, stdenv, fetchFromGitHub, qmake, qtbase, qtsvg, qtx11extras, kwindowsystem
|
2020-04-24 23:36:52 +00:00
|
|
|
, libX11, libXext, qttools, wrapQtAppsHook
|
2022-06-16 17:23:12 +00:00
|
|
|
, gitUpdater
|
2020-04-24 23:36:52 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "qtstyleplugin-kvantum";
|
2022-07-14 12:49:19 +00:00
|
|
|
version = "1.0.3";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "tsujan";
|
|
|
|
repo = "Kvantum";
|
|
|
|
rev = "V${version}";
|
2022-07-14 12:49:19 +00:00
|
|
|
sha256 = "hY8QQVcP3E+GAdLOqtVbqCWBcxS2M6sMOr/vr+DryyQ=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [
|
|
|
|
qmake qttools wrapQtAppsHook
|
|
|
|
];
|
2021-12-30 13:39:12 +00:00
|
|
|
|
2020-04-24 23:36:52 +00:00
|
|
|
buildInputs = [
|
|
|
|
qtbase qtsvg qtx11extras kwindowsystem libX11 libXext
|
|
|
|
];
|
|
|
|
|
|
|
|
sourceRoot = "source/Kvantum";
|
|
|
|
|
|
|
|
postPatch = ''
|
|
|
|
# Fix plugin dir
|
|
|
|
substituteInPlace style/style.pro \
|
|
|
|
--replace "\$\$[QT_INSTALL_PLUGINS]" "$out/$qtPluginPrefix"
|
|
|
|
'';
|
|
|
|
|
2022-06-16 17:23:12 +00:00
|
|
|
passthru.updateScript = gitUpdater {
|
|
|
|
inherit pname version;
|
|
|
|
attrPath = "libsForQt5.${pname}";
|
|
|
|
rev-prefix = "V";
|
|
|
|
};
|
|
|
|
|
2021-02-05 17:12:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
description = "SVG-based Qt5 theme engine plus a config tool and extra themes";
|
|
|
|
homepage = "https://github.com/tsujan/Kvantum";
|
2021-08-05 21:33:18 +00:00
|
|
|
license = licenses.gpl3Plus;
|
2020-04-24 23:36:52 +00:00
|
|
|
platforms = platforms.linux;
|
2021-06-28 23:13:55 +00:00
|
|
|
broken = lib.versionOlder qtbase.version "5.14";
|
2020-04-24 23:36:52 +00:00
|
|
|
maintainers = [ maintainers.bugworm ];
|
|
|
|
};
|
|
|
|
}
|