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

33 lines
939 B
Nix
Raw Normal View History

{ stdenv, fetchFromGitHub, qmake, qtbase, qtsvg, qtx11extras, kwindowsystem, libX11, libXext, qttools }:
2017-07-23 21:52:17 +03:00
stdenv.mkDerivation rec {
pname = "qtstyleplugin-kvantum";
version = "0.10.9";
2017-07-23 21:52:17 +03:00
src = fetchFromGitHub {
owner = "tsujan";
repo = "Kvantum";
rev = "V${version}";
sha256 = "1zpq6wsl57kfx0jf0rkxf15ic22ihazj03i3kfiqb07vcrs2cka9";
2017-07-23 21:52:17 +03:00
};
nativeBuildInputs = [ qmake qttools ];
buildInputs = [ qtbase qtsvg qtx11extras kwindowsystem libX11 libXext ];
2017-07-23 21:52:17 +03:00
sourceRoot = "source/Kvantum";
2017-07-23 21:52:17 +03:00
postPatch = ''
# Fix plugin dir
substituteInPlace style/style.pro \
--replace "\$\$[QT_INSTALL_PLUGINS]" "$out/$qtPluginPrefix"
2017-07-23 21:52:17 +03:00
'';
meta = with stdenv.lib; {
description = "SVG-based Qt5 theme engine plus a config tool and extra themes";
homepage = "https://github.com/tsujan/Kvantum";
license = licenses.gpl3;
2017-07-23 21:52:17 +03:00
platforms = platforms.linux;
2017-07-23 22:43:56 +03:00
maintainers = [ maintainers.bugworm ];
2017-07-23 21:52:17 +03:00
};
}