2021-02-05 17:12:51 +00:00
|
|
|
{ lib, stdenv, fetchFromGitHub, qmake4Hook , qt4, libX11, libXext }:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "qtstyleplugin-kvantum-qt4";
|
2023-02-02 18:25:31 +00:00
|
|
|
version = "1.0.7";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "tsujan";
|
|
|
|
repo = "Kvantum";
|
|
|
|
rev = "V${version}";
|
2023-02-02 18:25:31 +00:00
|
|
|
hash = "sha256-Ys77z5BoeQEOYe1h5ITEuVtVn6Uug9zQjrCBxLQOrSs=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [ qmake4Hook ];
|
|
|
|
buildInputs = [ qt4 libX11 libXext ];
|
|
|
|
|
2022-03-05 16:20:37 +00:00
|
|
|
sourceRoot = "source/Kvantum";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
buildPhase = ''
|
2022-03-05 16:20:37 +00:00
|
|
|
runHook preBuild
|
2020-04-24 23:36:52 +00:00
|
|
|
qmake kvantum.pro
|
|
|
|
make
|
2022-03-05 16:20:37 +00:00
|
|
|
runHook postBuild
|
2020-04-24 23:36:52 +00:00
|
|
|
'';
|
|
|
|
|
|
|
|
installPhase = ''
|
2022-03-05 16:20:37 +00:00
|
|
|
runHook preInstall
|
2020-04-24 23:36:52 +00:00
|
|
|
mkdir $TMP/kvantum
|
|
|
|
make INSTALL_ROOT="$TMP/kvantum" install
|
|
|
|
mv $TMP/kvantum/usr/ $out
|
|
|
|
mv $TMP/kvantum/${qt4}/lib $out
|
2022-03-05 16:20:37 +00:00
|
|
|
runHook postInstall
|
2020-04-24 23:36:52 +00:00
|
|
|
'';
|
|
|
|
|
2021-02-05 17:12:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
description = "SVG-based Qt4 theme engine";
|
|
|
|
homepage = "https://github.com/tsujan/Kvantum";
|
2022-03-05 16:20:37 +00:00
|
|
|
license = licenses.gpl3Plus;
|
2020-04-24 23:36:52 +00:00
|
|
|
platforms = platforms.linux;
|
|
|
|
maintainers = [ maintainers.bugworm ];
|
|
|
|
};
|
|
|
|
}
|