2020-04-24 23:36:52 +00:00
|
|
|
{ stdenv, fetchFromGitHub, qmake4Hook , qt4, libX11, libXext }:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "qtstyleplugin-kvantum-qt4";
|
2020-07-18 16:06:22 +00:00
|
|
|
version = "0.15.3";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "tsujan";
|
|
|
|
repo = "Kvantum";
|
|
|
|
rev = "V${version}";
|
2020-07-18 16:06:22 +00:00
|
|
|
sha256 = "0jq3y63c36nr2rprg7im9ik112p5zvhj46vzgxfbnpvskmg0cchm";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [ qmake4Hook ];
|
|
|
|
buildInputs = [ qt4 libX11 libXext ];
|
|
|
|
|
|
|
|
postUnpack = "sourceRoot=\${sourceRoot}/Kvantum";
|
|
|
|
|
|
|
|
buildPhase = ''
|
|
|
|
qmake kvantum.pro
|
|
|
|
make
|
|
|
|
'';
|
|
|
|
|
|
|
|
installPhase = ''
|
|
|
|
mkdir $TMP/kvantum
|
|
|
|
make INSTALL_ROOT="$TMP/kvantum" install
|
|
|
|
mv $TMP/kvantum/usr/ $out
|
|
|
|
mv $TMP/kvantum/${qt4}/lib $out
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "SVG-based Qt4 theme engine";
|
|
|
|
homepage = "https://github.com/tsujan/Kvantum";
|
|
|
|
license = licenses.gpl2;
|
|
|
|
platforms = platforms.linux;
|
|
|
|
maintainers = [ maintainers.bugworm ];
|
|
|
|
};
|
|
|
|
}
|