nixpkgs/pkgs/desktops/lxqt/core/lxqt-policykit/default.nix

52 lines
1.1 KiB
Nix
Raw Normal View History

2017-02-25 15:44:29 +00:00
{
stdenv, fetchFromGitHub, cmake, pkgconfig, lxqt-build-tools,
qtbase, qttools, qtx11extras, qtsvg, polkit-qt, kwindowsystem, liblxqt,
2017-11-02 01:57:37 +00:00
libqtxdg, pcre
2017-02-25 15:44:29 +00:00
}:
2016-10-03 23:10:07 +01:00
stdenv.mkDerivation rec {
name = "${pname}-${version}";
pname = "lxqt-policykit";
2017-11-02 01:57:37 +00:00
version = "0.12.0";
2016-10-03 23:10:07 +01:00
2017-11-02 01:57:37 +00:00
src = fetchFromGitHub {
2016-10-03 23:10:07 +01:00
owner = "lxde";
repo = pname;
rev = version;
2017-11-02 01:57:37 +00:00
sha256 = "1hxz5bxxi118g255aqb3da767va0wd25y671lk2w9r1641j8zf2d";
2016-10-03 23:10:07 +01:00
};
2017-02-19 13:24:17 +00:00
nativeBuildInputs = [
cmake
pkgconfig
2017-02-25 15:44:29 +00:00
lxqt-build-tools
2017-02-19 13:24:17 +00:00
];
2016-10-03 23:10:07 +01:00
buildInputs = [
2017-02-25 15:44:29 +00:00
qtbase
qttools
qtx11extras
qtsvg
polkit-qt
kwindowsystem
liblxqt
libqtxdg
2017-11-02 01:57:37 +00:00
pcre
2016-10-03 23:10:07 +01:00
];
cmakeFlags = [ "-DPULL_TRANSLATIONS=NO" ];
2017-11-02 01:57:37 +00:00
postPatch = ''
substituteInPlace autostart/CMakeLists.txt \
--replace "DESTINATION \"\''${LXQT_ETC_XDG_DIR}" "DESTINATION \"etc/xdg"
'';
2016-10-03 23:10:07 +01:00
meta = with stdenv.lib; {
description = "The LXQt PolicyKit agent";
homepage = https://github.com/lxde/lxqt-policykit;
license = licenses.lgpl21;
platforms = with platforms; unix;
2017-02-19 13:24:17 +00:00
maintainers = with maintainers; [ romildo ];
2016-10-03 23:10:07 +01:00
};
}