icu: only patch-out xlocale if using glibc
This commit is contained in:
parent
f47e13866d
commit
2d3149f4a8
1 changed files with 3 additions and 1 deletions
|
@ -26,7 +26,9 @@ stdenv.mkDerivation {
|
|||
'';
|
||||
|
||||
# https://sourceware.org/glibc/wiki/Release/2.26#Removal_of_.27xlocale.h.27
|
||||
postPatch = "substituteInPlace i18n/digitlst.cpp --replace '<xlocale.h>' '<locale.h>'";
|
||||
postPatch = if stdenv ? glibc
|
||||
then "substituteInPlace i18n/digitlst.cpp --replace '<xlocale.h>' '<locale.h>'"
|
||||
else null; # won't find locale_t on darwin
|
||||
|
||||
inherit patchFlags patches;
|
||||
|
||||
|
|
Loading…
Reference in a new issue