summary refs log tree commit diff
path: root/pkgs/development/libraries/icu
diff options
context:
space:
mode:
authorVladimír Čunát <vcunat@gmail.com>2017-11-07 06:33:09 +0100
committerVladimír Čunát <vcunat@gmail.com>2017-11-07 06:33:09 +0100
commit2d3149f4a808c2f90ed1dbf188f7371d193e7964 (patch)
treeff781329ee8af681220d2eabcef32571f57eb8e6 /pkgs/development/libraries/icu
parentf47e13866d8fe80aef8d1d367cac6d478dece6ae (diff)
downloadnixpkgs-2d3149f4a808c2f90ed1dbf188f7371d193e7964.tar
nixpkgs-2d3149f4a808c2f90ed1dbf188f7371d193e7964.tar.gz
nixpkgs-2d3149f4a808c2f90ed1dbf188f7371d193e7964.tar.bz2
nixpkgs-2d3149f4a808c2f90ed1dbf188f7371d193e7964.tar.lz
nixpkgs-2d3149f4a808c2f90ed1dbf188f7371d193e7964.tar.xz
nixpkgs-2d3149f4a808c2f90ed1dbf188f7371d193e7964.tar.zst
nixpkgs-2d3149f4a808c2f90ed1dbf188f7371d193e7964.zip
icu: only patch-out xlocale if using glibc
Diffstat (limited to 'pkgs/development/libraries/icu')
-rw-r--r--pkgs/development/libraries/icu/base.nix4
1 files changed, 3 insertions, 1 deletions
diff --git a/pkgs/development/libraries/icu/base.nix b/pkgs/development/libraries/icu/base.nix
index b12e76a90a9..8a7cf8365a5 100644
--- a/pkgs/development/libraries/icu/base.nix
+++ b/pkgs/development/libraries/icu/base.nix
@@ -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;