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

47 lines
1.1 KiB
Nix
Raw Normal View History

2017-11-02 01:55:19 +00:00
{ stdenv, fetchFromGitHub, cmake, lxqt-build-tools, qtbase, qttools, qtx11extras, qtsvg, kwindowsystem, liblxqt, libqtxdg }:
2016-10-03 21:54:34 +00:00
stdenv.mkDerivation rec {
name = "${pname}-${version}";
pname = "lxqt-globalkeys";
2017-11-02 01:55:19 +00:00
version = "0.12.0";
2016-10-03 21:54:34 +00:00
2017-11-02 01:55:19 +00:00
src = fetchFromGitHub {
2016-10-03 21:54:34 +00:00
owner = "lxde";
repo = pname;
rev = version;
2017-11-02 01:55:19 +00:00
sha256 = "14icyik9x47wi3gfkmkyhag26a2ivyc42f4f8qwdgbr3dcg10b9a";
2016-10-03 21:54:34 +00:00
};
2017-02-19 13:08:45 +00:00
nativeBuildInputs = [
cmake
2017-02-25 15:44:29 +00:00
lxqt-build-tools
2017-02-19 13:08:45 +00:00
];
2016-10-03 21:54:34 +00:00
buildInputs = [
2017-02-25 15:44:29 +00:00
qtbase
qttools
qtx11extras
qtsvg
kwindowsystem
liblxqt
libqtxdg
2016-10-03 21:54:34 +00:00
];
cmakeFlags = [ "-DPULL_TRANSLATIONS=NO" ];
2017-11-02 01:55:19 +00:00
postPatch = ''
for dir in autostart xdg; do
substituteInPlace $dir/CMakeLists.txt \
--replace "DESTINATION \"\''${LXQT_ETC_XDG_DIR}" "DESTINATION \"etc/xdg"
done
'';
2016-10-03 21:54:34 +00:00
meta = with stdenv.lib; {
description = "Daemon used to register global keyboard shortcuts";
homepage = https://github.com/lxde/lxqt-globalkeys;
license = licenses.lgpl21;
platforms = with platforms; unix;
2017-02-19 13:08:45 +00:00
maintainers = with maintainers; [ romildo ];
2016-10-03 21:54:34 +00:00
};
}