about summary refs log tree commit diff
path: root/pkgs/desktops/lxqt/liblxqt/default.nix
diff options
context:
space:
mode:
authorworldofpeace <worldofpeace@protonmail.ch>2019-08-22 00:42:28 -0400
committerworldofpeace <worldofpeace@protonmail.ch>2019-08-22 00:42:28 -0400
commite34de045b65ac7b812d980df85204644baeb60c9 (patch)
tree27dbdafeae7a636e7edd4e3ff1d0f297bb698228 /pkgs/desktops/lxqt/liblxqt/default.nix
parent3167eb3780ca59f1786e9f80d017e5ac3e7807ac (diff)
downloadnixlib-e34de045b65ac7b812d980df85204644baeb60c9.tar
nixlib-e34de045b65ac7b812d980df85204644baeb60c9.tar.gz
nixlib-e34de045b65ac7b812d980df85204644baeb60c9.tar.bz2
nixlib-e34de045b65ac7b812d980df85204644baeb60c9.tar.lz
nixlib-e34de045b65ac7b812d980df85204644baeb60c9.tar.xz
nixlib-e34de045b65ac7b812d980df85204644baeb60c9.tar.zst
nixlib-e34de045b65ac7b812d980df85204644baeb60c9.zip
lxqt: use modified LXQtConfigVars CMake macro
LXQt uses the values in this macro to set installation
directories and in the case of lxqt-session to substitute in paths.
However, by doing this all the paths are from within lxqt-build-tools
prefix. By utilizing a setup hook we can set the directories with the
correct prefix as cmake flags.
Diffstat (limited to 'pkgs/desktops/lxqt/liblxqt/default.nix')
-rw-r--r--pkgs/desktops/lxqt/liblxqt/default.nix7
1 files changed, 0 insertions, 7 deletions
diff --git a/pkgs/desktops/lxqt/liblxqt/default.nix b/pkgs/desktops/lxqt/liblxqt/default.nix
index 964931494204..d94b1ac0d030 100644
--- a/pkgs/desktops/lxqt/liblxqt/default.nix
+++ b/pkgs/desktops/lxqt/liblxqt/default.nix
@@ -27,15 +27,8 @@ mkDerivation rec {
     xorg.libXScrnSaver
   ];
 
-  cmakeFlags = [
-    "-DLXQT_ETC_XDG_DIR=/run/current-system/sw/etc/xdg"
-  ];
-
   postPatch = ''
-    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
-    substituteInPlace CMakeLists.txt \
-      --replace "\''${LXQT_TRANSLATIONS_DIR}" "''${out}/share/lxqt/translations"
   '';
 
   meta = with lib; {