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

52 lines
1.1 KiB
Nix
Raw Normal View History

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