2021-01-21 17:00:13 +00:00
|
|
|
{ lib, stdenv, fetchFromGitHub, qmake4Hook , qt4, libX11, libXext }:
|
2017-07-23 19:52:17 +01:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2019-03-26 02:17:59 +00:00
|
|
|
pname = "qtstyleplugin-kvantum-qt4";
|
2020-07-31 08:34:18 +01:00
|
|
|
version = "0.16.0";
|
2017-07-23 19:52:17 +01:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "tsujan";
|
|
|
|
repo = "Kvantum";
|
2019-03-26 02:17:59 +00:00
|
|
|
rev = "V${version}";
|
2020-07-31 08:34:18 +01:00
|
|
|
sha256 = "05ihjslnv7rrp4giwvvyaiig0dpfmw3jijfaadzax8jhbyscmxsq";
|
2017-07-23 19:52:17 +01: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
|
|
|
|
'';
|
|
|
|
|
2021-01-21 17:00:13 +00:00
|
|
|
meta = with lib; {
|
2017-07-23 19:52:17 +01:00
|
|
|
description = "SVG-based Qt4 theme engine";
|
|
|
|
homepage = "https://github.com/tsujan/Kvantum";
|
|
|
|
license = licenses.gpl2;
|
|
|
|
platforms = platforms.linux;
|
2017-07-23 20:43:56 +01:00
|
|
|
maintainers = [ maintainers.bugworm ];
|
2017-07-23 19:52:17 +01:00
|
|
|
};
|
|
|
|
}
|