nixpkgs-suyu/pkgs/development/libraries/qtstyleplugin-kvantum-qt4/default.nix

39 lines
912 B
Nix
Raw Normal View History

2017-07-23 20:52:17 +02:00
{ stdenv, fetchFromGitHub, qmake4Hook , qt4, libX11, libXext }:
stdenv.mkDerivation rec {
pname = "qtstyleplugin-kvantum-qt4";
version = "0.11.0";
2017-07-23 20:52:17 +02:00
src = fetchFromGitHub {
owner = "tsujan";
repo = "Kvantum";
rev = "V${version}";
sha256 = "0aqlv7mj7r9vjm6pvb8pv3cyx35lgz8rjjas3k8wfdr3sqyyy25g";
2017-07-23 20:52:17 +02: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;
2017-07-23 21:43:56 +02:00
maintainers = [ maintainers.bugworm ];
2017-07-23 20:52:17 +02:00
};
}