2017-07-23 19:52:17 +01:00
|
|
|
{ stdenv, fetchFromGitHub, qmake, qtbase, qtsvg, qtx11extras, libX11, libXext, qttools }:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "qtstyleplugin-kvantum-${version}";
|
2018-04-12 13:31:57 +01:00
|
|
|
version = "0.10.6";
|
2017-07-23 19:52:17 +01:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "tsujan";
|
|
|
|
repo = "Kvantum";
|
2018-04-12 13:31:57 +01:00
|
|
|
rev = "a6daa1a6df3c5d4abc7ea39ef7028ddea2addbf6";
|
|
|
|
sha256 = "1zns4x95h0ydiwx8yw0bmyg4lc2sy7annmdrg66sx753x3177zxp";
|
2017-07-23 19:52:17 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [ qmake qttools ];
|
|
|
|
buildInputs = [ qtbase qtsvg qtx11extras libX11 libXext ];
|
|
|
|
|
|
|
|
postUnpack = "sourceRoot=\${sourceRoot}/Kvantum";
|
|
|
|
|
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
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
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
|
|
|
};
|
|
|
|
}
|