Merge pull request #32299 from orivej/gettext-datadirs
gettext: add setup hook populating GETTEXTDATADIRS
This commit is contained in:
commit
b0311ab861
2 changed files with 9 additions and 0 deletions
|
@ -48,6 +48,8 @@ stdenv.mkDerivation rec {
|
|||
# HACK, see #10874 (and 14664)
|
||||
buildInputs = stdenv.lib.optional (!stdenv.isLinux && !hostPlatform.isCygwin) libiconv;
|
||||
|
||||
setupHook = ./gettext-setup-hook.sh;
|
||||
|
||||
enableParallelBuilding = true;
|
||||
|
||||
meta = {
|
||||
|
|
7
pkgs/development/libraries/gettext/gettext-setup-hook.sh
Normal file
7
pkgs/development/libraries/gettext/gettext-setup-hook.sh
Normal file
|
@ -0,0 +1,7 @@
|
|||
gettextDataDirsHook() {
|
||||
if [ -d "$1/share/gettext" ]; then
|
||||
addToSearchPath GETTEXTDATADIRS "$1/share/gettext"
|
||||
fi
|
||||
}
|
||||
|
||||
envHooks+=(gettextDataDirsHook)
|
Loading…
Reference in a new issue