about summary refs log tree commit diff
path: root/pkgs/development/libraries/gettext/gettext-setup-hook.sh
blob: bdd34f453942a95e66247a66e15cb7dd0cdc8f71 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
gettextDataDirsHook() {
    if [ -d "$1/share/gettext" ]; then
        addToSearchPath GETTEXTDATADIRS "$1/share/gettext"
    fi
}

addEnvHooks "$hostOffset" gettextDataDirsHook

# libintl must be listed in load flags on non-Glibc
# it doesn't hurt to have it in Glibc either though
gettextLdflags() {
    export NIX_LDFLAGS="$NIX_LDFLAGS -lintl"
}

addEnvHooks "$hostOffset" gettextLdflags