2017-11-02 02:55:19 +01:00
|
|
|
{ stdenv, fetchFromGitHub, cmake, lxqt-build-tools, qtbase, qttools, qtx11extras, qtsvg, kwindowsystem, liblxqt, libqtxdg }:
|
2016-10-03 23:54:34 +02:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "${pname}-${version}";
|
|
|
|
pname = "lxqt-globalkeys";
|
2017-11-02 02:55:19 +01:00
|
|
|
version = "0.12.0";
|
2016-10-03 23:54:34 +02:00
|
|
|
|
2017-11-02 02:55:19 +01:00
|
|
|
src = fetchFromGitHub {
|
2016-10-03 23:54:34 +02:00
|
|
|
owner = "lxde";
|
|
|
|
repo = pname;
|
|
|
|
rev = version;
|
2017-11-02 02:55:19 +01:00
|
|
|
sha256 = "14icyik9x47wi3gfkmkyhag26a2ivyc42f4f8qwdgbr3dcg10b9a";
|
2016-10-03 23:54:34 +02:00
|
|
|
};
|
|
|
|
|
2017-02-19 14:08:45 +01:00
|
|
|
nativeBuildInputs = [
|
|
|
|
cmake
|
2017-02-25 16:44:29 +01:00
|
|
|
lxqt-build-tools
|
2017-02-19 14:08:45 +01:00
|
|
|
];
|
2016-10-03 23:54:34 +02:00
|
|
|
|
|
|
|
buildInputs = [
|
2017-02-25 16:44:29 +01:00
|
|
|
qtbase
|
|
|
|
qttools
|
|
|
|
qtx11extras
|
|
|
|
qtsvg
|
|
|
|
kwindowsystem
|
|
|
|
liblxqt
|
|
|
|
libqtxdg
|
2016-10-03 23:54:34 +02:00
|
|
|
];
|
|
|
|
|
|
|
|
cmakeFlags = [ "-DPULL_TRANSLATIONS=NO" ];
|
|
|
|
|
2017-11-02 02:55:19 +01: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 23:54:34 +02: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 14:08:45 +01:00
|
|
|
maintainers = with maintainers; [ romildo ];
|
2016-10-03 23:54:34 +02:00
|
|
|
};
|
|
|
|
}
|