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

40 lines
1.0 KiB
Nix
Raw Normal View History

{ lib, stdenv, fetchFromGitHub, qmake, qtbase, qtsvg, qtx11extras, kwindowsystem
, libX11, libXext, qttools, wrapQtAppsHook
}:
2017-07-23 18:52:17 +00:00
stdenv.mkDerivation rec {
pname = "qtstyleplugin-kvantum";
version = "0.20.0";
2017-07-23 18:52:17 +00:00
src = fetchFromGitHub {
owner = "tsujan";
repo = "Kvantum";
rev = "V${version}";
sha256 = "133m5ifs8ylhdh78m99n0y76q0nix68xsqfwcsrak4yr1n5pj9qp";
2017-07-23 18:52:17 +00:00
};
nativeBuildInputs = [
qmake qttools wrapQtAppsHook
];
buildInputs = [
qtbase qtsvg qtx11extras kwindowsystem libX11 libXext
];
2017-07-23 18:52:17 +00:00
sourceRoot = "source/Kvantum";
2017-07-23 18:52:17 +00:00
postPatch = ''
# Fix plugin dir
substituteInPlace style/style.pro \
--replace "\$\$[QT_INSTALL_PLUGINS]" "$out/$qtPluginPrefix"
2017-07-23 18:52:17 +00:00
'';
meta = with lib; {
2017-07-23 18:52:17 +00:00
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 18:52:17 +00:00
platforms = platforms.linux;
broken = lib.versionOlder qtbase.version "5.14";
2017-07-23 19:43:56 +00:00
maintainers = [ maintainers.bugworm ];
2017-07-23 18:52:17 +00:00
};
}