diff options
author | worldofpeace <worldofpeace@protonmail.ch> | 2019-08-22 00:42:28 -0400 |
---|---|---|
committer | worldofpeace <worldofpeace@protonmail.ch> | 2019-08-22 00:42:28 -0400 |
commit | e34de045b65ac7b812d980df85204644baeb60c9 (patch) | |
tree | 27dbdafeae7a636e7edd4e3ff1d0f297bb698228 /pkgs/desktops/lxqt/lxqt-build-tools/default.nix | |
parent | 3167eb3780ca59f1786e9f80d017e5ac3e7807ac (diff) | |
download | nixlib-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/lxqt-build-tools/default.nix')
-rw-r--r-- | pkgs/desktops/lxqt/lxqt-build-tools/default.nix | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/pkgs/desktops/lxqt/lxqt-build-tools/default.nix b/pkgs/desktops/lxqt/lxqt-build-tools/default.nix index d202ba95d3e6..626c99fcf9c9 100644 --- a/pkgs/desktops/lxqt/lxqt-build-tools/default.nix +++ b/pkgs/desktops/lxqt/lxqt-build-tools/default.nix @@ -11,11 +11,18 @@ mkDerivation rec { sha256 = "0i7m9s4g5rsw28vclc9nh0zcapx85cqfwxkx7rrw7wa12svy7pm2"; }; - nativeBuildInputs = [ cmake pkgconfig ]; + nativeBuildInputs = [ cmake pkgconfig setupHook ]; buildInputs = [ qtbase glib pcre ]; - preConfigure = ''cmakeFlags+=" -DLXQT_ETC_XDG_DIR=$out/etc/xdg"''; + setupHook = ./setup-hook.sh; + + # We're dependent on this macro doing add_definitions in most places + # But we have the setup-hook to set the values. + postInstall = '' + rm $out/share/cmake/lxqt-build-tools/modules/LXQtConfigVars.cmake + cp ${./LXQtConfigVars.cmake} $out/share/cmake/lxqt-build-tools/modules/LXQtConfigVars.cmake + ''; meta = with lib; { description = "Various packaging tools and scripts for LXQt applications"; |