2022-09-22 12:36:57 +00:00
|
|
|
{ lib
|
|
|
|
, stdenv
|
|
|
|
, fetchFromGitHub
|
|
|
|
, fetchpatch
|
|
|
|
, qmake
|
|
|
|
, qtbase
|
|
|
|
, qtsvg
|
|
|
|
, qtx11extras
|
|
|
|
, kwindowsystem
|
|
|
|
, 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-10-30 15:09:59 +00:00
|
|
|
version = "1.0.6";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "tsujan";
|
|
|
|
repo = "Kvantum";
|
|
|
|
rev = "V${version}";
|
2022-10-30 15:09:59 +00:00
|
|
|
sha256 = "35PrC4UZJJJgDUMv/xoz4R9HA9hidZ9HmXSgte6B+a8=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [
|
2022-09-22 12:36:57 +00:00
|
|
|
qmake
|
|
|
|
qttools
|
|
|
|
wrapQtAppsHook
|
2020-04-24 23:36:52 +00:00
|
|
|
];
|
2021-12-30 13:39:12 +00:00
|
|
|
|
2020-04-24 23:36:52 +00:00
|
|
|
buildInputs = [
|
2022-09-22 12:36:57 +00:00
|
|
|
qtbase
|
|
|
|
qtsvg
|
|
|
|
qtx11extras
|
|
|
|
kwindowsystem
|
|
|
|
libX11
|
|
|
|
libXext
|
2020-04-24 23:36:52 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
sourceRoot = "source/Kvantum";
|
|
|
|
|
2022-08-12 12:06:08 +00:00
|
|
|
patches = [
|
|
|
|
(fetchpatch {
|
|
|
|
# add xdg dirs support
|
|
|
|
url = "https://github.com/tsujan/Kvantum/commit/01989083f9ee75a013c2654e760efd0a1dea4a68.patch";
|
|
|
|
hash = "sha256-HPx+p4Iek/Me78olty1fA0dUNceK7bwOlTYIcQu8ycc=";
|
|
|
|
stripLen = 1;
|
|
|
|
})
|
|
|
|
];
|
|
|
|
|
2020-04-24 23:36:52 +00:00
|
|
|
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 {
|
|
|
|
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";
|
2022-08-12 12:06:08 +00:00
|
|
|
maintainers = [ maintainers.romildo ];
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|