icu: only patch-out xlocale if using glibc

This commit is contained in:
Vladimír Čunát 2017-11-07 06:33:09 +01:00
parent f47e13866d
commit 2d3149f4a8
No known key found for this signature in database
GPG key ID: E747DF1F9575A3AA

View file

@ -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;