mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-29 17:10:48 +00:00
e34de045b6
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.
16 lines
417 B
Bash
16 lines
417 B
Bash
LXQtCMakePostHook() {
|
|
cmakeFlagsArray+=(
|
|
-DLXQT_LIBRARY_NAME=lxqt
|
|
-DLXQT_SHARE_DIR=$out/share/lxqt
|
|
-DLXQT_TRANSLATIONS_DIR=$out/share/lxqt/translations
|
|
-DLXQT_GRAPHICS_DIR=$out/share/lxqt/graphics
|
|
-DLXQT_ETC_XDG_DIR=$out/etc/xdg
|
|
-DLXQT_DATA_DIR=$out/share
|
|
-DLXQT_RELATIVE_SHARE_DIR=lxqt
|
|
-DLXQT_RELATIVE_SHARE_TRANSLATIONS_DIR=lxqt/translations
|
|
)
|
|
|
|
}
|
|
|
|
postHooks+=(LXQtCMakePostHook)
|