at master 17 lines 556 B view raw
1gettextDataDirsHook() { 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 7} 8 9addEnvHooks "$hostOffset" gettextDataDirsHook 10 11# libintl must be listed in load flags on non-Glibc 12# it doesn't hurt to have it in Glibc either though 13if [ -n "@gettextNeedsLdflags@" -a -z "${dontAddExtraLibs-}" ]; then 14 # See pkgs/build-support/setup-hooks/role.bash 15 getHostRole 16 export NIX_LDFLAGS${role_post}+=" -lintl" 17fi