3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/desktops/lxqt/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 22:54:34 +01:00
stdenv.mkDerivation rec {
name = "${pname}-${version}";
pname = "lxqt-globalkeys";
2018-05-22 14:53:11 +01:00
version = "0.13.0";
2016-10-03 22:54:34 +01:00
2017-11-02 01:55:19 +00:00
src = fetchFromGitHub {
owner = "lxqt";
2016-10-03 22:54:34 +01:00
repo = pname;
rev = version;
2018-05-22 14:53:11 +01:00
sha256 = "1fmi0n5chnrpbgf7zwzc3hi55r85hkxaq5jylbwaahmxhnb5hdid";
2016-10-03 22:54:34 +01: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 22:54:34 +01:00
buildInputs = [
2017-02-25 15:44:29 +00:00
qtbase
qttools
qtx11extras
qtsvg
kwindowsystem
liblxqt
libqtxdg
2016-10-03 22:54:34 +01: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 22:54:34 +01:00
meta = with stdenv.lib; {
description = "Daemon used to register global keyboard shortcuts";
homepage = https://github.com/lxqt/lxqt-globalkeys;
2016-10-03 22:54:34 +01:00
license = licenses.lgpl21;
platforms = with platforms; unix;
2017-02-19 13:08:45 +00:00
maintainers = with maintainers; [ romildo ];
2016-10-03 22:54:34 +01:00
};
}