Skip to content

Commit

Permalink
gettext: remove cross suffix from envHook
Browse files Browse the repository at this point in the history
`role_post` is meant for cross compilation, eg. `CC_FOR_BUILD` and
`CC_FOR_TARGET`. There's no such concept for `GETTEXTDATADIRS`.

In particular we hit this with `cantarell-fonts`, where only
`GETTEXTDATADIRS_FOR_BUILD` is defined due to empty buildInputs.

see NixOS#50855
  • Loading branch information
hedning committed Nov 21, 2018
1 parent 26725b4 commit 5a7f4d6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkgs/development/libraries/gettext/gettext-setup-hook.sh
Expand Up @@ -2,7 +2,7 @@ gettextDataDirsHook() {
# See pkgs/build-support/setup-hooks/role.bash
getHostRoleEnvHook
if [ -d "$1/share/gettext" ]; then
addToSearchPath "GETTEXTDATADIRS${role_post}" "$1/share/gettext"
addToSearchPath GETTEXTDATADIRS "$1/share/gettext"
fi
}

Expand Down

0 comments on commit 5a7f4d6

Please sign in to comment.