kdePackages.extra-cmake-modules: fix hook offset

In `kdePackages`, `strictDeps` is set and `extra-cmake-modules` goes into
`buildInputs`. The hook should run against the `buildInputs`, so it should
have `hostOffset`. This fixes for example the loading of translations that
come from dependencies.
This commit is contained in:
Alois Wohlschlager 2024-03-17 19:05:41 +01:00
parent d691274a97
commit 2da73a5ac2
No known key found for this signature in database
GPG Key ID: E0F59EA5E5216914
1 changed files with 2 additions and 2 deletions

View File

@ -6,7 +6,7 @@ ecmEnvHook() {
addToSearchPath XDG_DATA_DIRS "$1/share"
addToSearchPath XDG_CONFIG_DIRS "$1/etc/xdg"
}
addEnvHooks "$targetOffset" ecmEnvHook
addEnvHooks "$hostOffset" ecmEnvHook
ecmPostHook() {
# Because we need to use absolute paths here, we must set *all* the paths.
@ -125,4 +125,4 @@ ecmHostPathHook() {
propagatedUserEnvPkgs+=" $1"
fi
}
addEnvHooks "$targetOffset" ecmHostPathHook
addEnvHooks "$hostOffset" ecmHostPathHook