2021-01-21 17:00:13 +00:00
|
|
|
{ lib, stdenv, fetchFromGitHub, qmake, qtbase, qtsvg, qtx11extras, kwindowsystem
|
2019-08-12 12:34:33 +01:00
|
|
|
, libX11, libXext, qttools, wrapQtAppsHook
|
|
|
|
}:
|
2017-07-23 19:52:17 +01:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2019-01-08 03:09:56 +00:00
|
|
|
pname = "qtstyleplugin-kvantum";
|
2019-08-26 01:56:03 +01:00
|
|
|
version = "0.11.2";
|
2017-07-23 19:52:17 +01:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "tsujan";
|
|
|
|
repo = "Kvantum";
|
2019-01-08 03:09:56 +00:00
|
|
|
rev = "V${version}";
|
2019-08-26 01:56:03 +01:00
|
|
|
sha256 = "1jcfv96ws6sm3kc2q8zriwqhry24qbq3zbp8gkqw75wssbv82rmc";
|
2017-07-23 19:52:17 +01:00
|
|
|
};
|
|
|
|
|
2019-08-12 12:34:33 +01:00
|
|
|
nativeBuildInputs = [
|
|
|
|
qmake qttools wrapQtAppsHook
|
|
|
|
];
|
|
|
|
buildInputs = [
|
|
|
|
qtbase qtsvg qtx11extras kwindowsystem libX11 libXext
|
|
|
|
];
|
2017-07-23 19:52:17 +01:00
|
|
|
|
2019-01-08 03:09:56 +00:00
|
|
|
sourceRoot = "source/Kvantum";
|
2017-07-23 19:52:17 +01:00
|
|
|
|
2018-04-12 13:31:57 +01:00
|
|
|
postPatch = ''
|
|
|
|
# Fix plugin dir
|
|
|
|
substituteInPlace style/style.pro \
|
|
|
|
--replace "\$\$[QT_INSTALL_PLUGINS]" "$out/$qtPluginPrefix"
|
2017-07-23 19:52:17 +01:00
|
|
|
'';
|
|
|
|
|
2021-01-21 17:00:13 +00:00
|
|
|
meta = with lib; {
|
2017-07-23 19:52:17 +01:00
|
|
|
description = "SVG-based Qt5 theme engine plus a config tool and extra themes";
|
|
|
|
homepage = "https://github.com/tsujan/Kvantum";
|
2018-04-12 13:31:57 +01:00
|
|
|
license = licenses.gpl3;
|
2017-07-23 19:52:17 +01:00
|
|
|
platforms = platforms.linux;
|
2017-07-23 20:43:56 +01:00
|
|
|
maintainers = [ maintainers.bugworm ];
|
2017-07-23 19:52:17 +01:00
|
|
|
};
|
|
|
|
}
|