libiconv: add setup-hook
This commit is contained in:
parent
90c132c7f1
commit
9e75fb5eb4
@ -14,6 +14,8 @@ stdenv.mkDerivation rec {
|
|||||||
sha256 = "0y1ij745r4p48mxq84rax40p10ln7fc7m243p8k8sia519i3dxfc";
|
sha256 = "0y1ij745r4p48mxq84rax40p10ln7fc7m243p8k8sia519i3dxfc";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
setupHook = ./setup-hook.sh;
|
||||||
|
|
||||||
postPatch =
|
postPatch =
|
||||||
lib.optionalString ((hostPlatform != buildPlatform && hostPlatform.libc == "msvcrt") || stdenv.cc.nativeLibc)
|
lib.optionalString ((hostPlatform != buildPlatform && hostPlatform.libc == "msvcrt") || stdenv.cc.nativeLibc)
|
||||||
''
|
''
|
||||||
|
7
pkgs/development/libraries/libiconv/setup-hook.sh
Normal file
7
pkgs/development/libraries/libiconv/setup-hook.sh
Normal file
@ -0,0 +1,7 @@
|
|||||||
|
# libintl must be listed in load flags on non-Glibc
|
||||||
|
# it doesn't hurt to have it in Glibc either though
|
||||||
|
iconvLdflags() {
|
||||||
|
export NIX_LDFLAGS="$NIX_LDFLAGS -iconv"
|
||||||
|
}
|
||||||
|
|
||||||
|
addEnvHooks "$hostOffset" iconvLdflags
|
Loading…
x
Reference in New Issue
Block a user