nixpkgs/pkgs/development/libraries/gettext/gettext-setup-hook.sh

18 lines
555 B
Bash
Raw Normal View History

gettextDataDirsHook() {
# See pkgs/build-support/setup-hooks/role.bash
getHostRoleEnvHook
if [ -d "$1/share/gettext" ]; then
addToSearchPath "GETTEXTDATADIRS${role_post}" "$1/share/gettext"
fi
}
2018-01-06 13:32:30 +00:00
addEnvHooks "$hostOffset" gettextDataDirsHook
2018-03-14 19:14:21 +00:00
# libintl must be listed in load flags on non-Glibc
# it doesn't hurt to have it in Glibc either though
if [ -n "@gettextNeedsLdflags@" -a -z "${dontAddExtraLibs-}" ]; then
# See pkgs/build-support/setup-hooks/role.bash
getHostRole
export NIX_${role_pre}LDFLAGS+=" -lintl"
fi