diff options
Diffstat (limited to 'pkgs/desktops/lxqt/lxqt-globalkeys/default.nix')
-rw-r--r-- | pkgs/desktops/lxqt/lxqt-globalkeys/default.nix | 46 |
1 files changed, 46 insertions, 0 deletions
diff --git a/pkgs/desktops/lxqt/lxqt-globalkeys/default.nix b/pkgs/desktops/lxqt/lxqt-globalkeys/default.nix new file mode 100644 index 000000000000..1877236bcddc --- /dev/null +++ b/pkgs/desktops/lxqt/lxqt-globalkeys/default.nix @@ -0,0 +1,46 @@ +{ stdenv, fetchFromGitHub, cmake, lxqt-build-tools, qtbase, qttools, qtx11extras, qtsvg, kwindowsystem, liblxqt, libqtxdg }: + +stdenv.mkDerivation rec { + name = "${pname}-${version}"; + pname = "lxqt-globalkeys"; + version = "0.13.0"; + + src = fetchFromGitHub { + owner = "lxqt"; + repo = pname; + rev = version; + sha256 = "1fmi0n5chnrpbgf7zwzc3hi55r85hkxaq5jylbwaahmxhnb5hdid"; + }; + + nativeBuildInputs = [ + cmake + lxqt-build-tools + ]; + + buildInputs = [ + qtbase + qttools + qtx11extras + qtsvg + kwindowsystem + liblxqt + libqtxdg + ]; + + cmakeFlags = [ "-DPULL_TRANSLATIONS=NO" ]; + + postPatch = '' + for dir in autostart xdg; do + substituteInPlace $dir/CMakeLists.txt \ + --replace "DESTINATION \"\''${LXQT_ETC_XDG_DIR}" "DESTINATION \"etc/xdg" + done + ''; + + meta = with stdenv.lib; { + description = "Daemon used to register global keyboard shortcuts"; + homepage = https://github.com/lxqt/lxqt-globalkeys; + license = licenses.lgpl21; + platforms = with platforms; unix; + maintainers = with maintainers; [ romildo ]; + }; +} |