tangled
alpha
login
or
join now
pyrox.dev
/
nixpkgs
lol
0
fork
atom
overview
issues
pulls
pipelines
icu: only patch-out xlocale if using glibc
Vladimír Čunát
8 years ago
2d3149f4
f47e1386
+3
-1
1 changed file
expand all
collapse all
unified
split
pkgs
development
libraries
icu
base.nix
+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
29
-
postPatch = "substituteInPlace i18n/digitlst.cpp --replace '<xlocale.h>' '<locale.h>'";
29
29
+
postPatch = if stdenv ? glibc
30
30
+
then "substituteInPlace i18n/digitlst.cpp --replace '<xlocale.h>' '<locale.h>'"
31
31
+
else null; # won't find locale_t on darwin
30
32
31
33
inherit patchFlags patches;
32
34