diff options
Diffstat (limited to 'pkgs/desktops/lxqt/liblxqt/default.nix')
-rw-r--r-- | pkgs/desktops/lxqt/liblxqt/default.nix | 48 |
1 files changed, 48 insertions, 0 deletions
diff --git a/pkgs/desktops/lxqt/liblxqt/default.nix b/pkgs/desktops/lxqt/liblxqt/default.nix new file mode 100644 index 000000000000..0762dbad3f87 --- /dev/null +++ b/pkgs/desktops/lxqt/liblxqt/default.nix @@ -0,0 +1,48 @@ +{ stdenv, fetchFromGitHub, cmake, lxqt-build-tools, qtx11extras, + qttools, qtsvg, libqtxdg, polkit-qt, kwindowsystem, xorg }: + +stdenv.mkDerivation rec { + name = "${pname}-${version}"; + pname = "liblxqt"; + version = "0.13.0"; + + src = fetchFromGitHub { + owner = "lxqt"; + repo = pname; + rev = version; + sha256 = "1lbvnx6gg15k7fy1bnv5sjji659f603glblcl8c9psh0m1cjdbll"; + }; + + nativeBuildInputs = [ + cmake + lxqt-build-tools + ]; + + buildInputs = [ + qtx11extras + qttools + qtsvg + polkit-qt + kwindowsystem + libqtxdg + xorg.libXScrnSaver + ]; + + cmakeFlags = [ + "-DPULL_TRANSLATIONS=NO" + "-DLXQT_ETC_XDG_DIR=/run/current-system/sw/etc/xdg" + ]; + + patchPhase = '' + sed -i 's|set(LXQT_SHARE_DIR .*)|set(LXQT_SHARE_DIR "/run/current-system/sw/share/lxqt")|' CMakeLists.txt + sed -i "s|\''${POLKITQT-1_POLICY_FILES_INSTALL_DIR}|''${out}/share/polkit-1/actions|" CMakeLists.txt + ''; + + meta = with stdenv.lib; { + description = "Core utility library for all LXQt components"; + homepage = https://github.com/lxqt/liblxqt; + license = licenses.lgpl21Plus; + platforms = with platforms; unix; + maintainers = with maintainers; [ romildo ]; + }; +} |