diff options
author | Alois Wohlschlager <alois1@gmx-topmail.de> | 2024-03-17 19:05:41 +0100 |
---|---|---|
committer | Alois Wohlschlager <alois1@gmx-topmail.de> | 2024-03-17 19:09:38 +0100 |
commit | 2da73a5ac21e474721aeea06325bd99c3bfc8ddd (patch) | |
tree | 7ebb0d7c580b029b35f2059c8a070e0d8ff15aea | |
parent | d691274a972b3165335d261cc4671335f5c67de9 (diff) |
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.
-rw-r--r-- | pkgs/kde/frameworks/extra-cmake-modules/ecm-hook.sh | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/pkgs/kde/frameworks/extra-cmake-modules/ecm-hook.sh b/pkgs/kde/frameworks/extra-cmake-modules/ecm-hook.sh index b6c50059868fa..9a4975da8e0d4 100644 --- a/pkgs/kde/frameworks/extra-cmake-modules/ecm-hook.sh +++ b/pkgs/kde/frameworks/extra-cmake-modules/ecm-hook.sh @@ -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 |