1 gettextDataDirsHook
() {
2 # See pkgs/build-support/setup-hooks/role.bash
4 if [ -d "$1/share/gettext" ]; then
5 addToSearchPath
"GETTEXTDATADIRS${role_post}" "$1/share/gettext"
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
16 export NIX_LDFLAGS
${role_post}+=" -lintl"