icu: only patch-out xlocale if using glibc

+3 -1
+3 -1
pkgs/development/libraries/icu/base.nix
··· 26 26 ''; 27 27 28 28 # https://sourceware.org/glibc/wiki/Release/2.26#Removal_of_.27xlocale.h.27 29 - postPatch = "substituteInPlace i18n/digitlst.cpp --replace '<xlocale.h>' '<locale.h>'"; 29 + postPatch = if stdenv ? glibc 30 + then "substituteInPlace i18n/digitlst.cpp --replace '<xlocale.h>' '<locale.h>'" 31 + else null; # won't find locale_t on darwin 30 32 31 33 inherit patchFlags patches; 32 34