gettext: add setup hook populating GETTEXTDATADIRS
Fixes #32296 (cherry picked from commit f727aeb4505a9646eb7f7d67ed0fd411900b570c)
This commit is contained in:
parent
59bcd86640
commit
a5c832f1af
@ -48,6 +48,8 @@ stdenv.mkDerivation rec {
|
|||||||
# HACK, see #10874 (and 14664)
|
# HACK, see #10874 (and 14664)
|
||||||
buildInputs = stdenv.lib.optional (!stdenv.isLinux && !hostPlatform.isCygwin) libiconv;
|
buildInputs = stdenv.lib.optional (!stdenv.isLinux && !hostPlatform.isCygwin) libiconv;
|
||||||
|
|
||||||
|
setupHook = ./gettext-setup-hook.sh;
|
||||||
|
|
||||||
enableParallelBuilding = true;
|
enableParallelBuilding = true;
|
||||||
|
|
||||||
meta = {
|
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…
x
Reference in New Issue
Block a user