Merge pull request #268619 from tweag/lib-descriptions
[NixPkgs.git] / pkgs / development / libraries / gettext / gettext-setup-hook.sh
blob5cc9655a89bc7241f1863c4a1dc2764adcc0af46
1 gettextDataDirsHook() {
2 # See pkgs/build-support/setup-hooks/role.bash
3 getHostRoleEnvHook
4 if [ -d "$1/share/gettext" ]; then
5 addToSearchPath "GETTEXTDATADIRS${role_post}" "$1/share/gettext"
6 fi
9 addEnvHooks "$hostOffset" gettextDataDirsHook
11 # libintl must be listed in load flags on non-Glibc
12 # it doesn't hurt to have it in Glibc either though
13 if [ -n "@gettextNeedsLdflags@" -a -z "${dontAddExtraLibs-}" ]; then
14 # See pkgs/build-support/setup-hooks/role.bash
15 getHostRole
16 export NIX_LDFLAGS${role_post}+=" -lintl"