diff options
author | Vladimír Čunát <vcunat@gmail.com> | 2017-11-07 06:33:09 +0100 |
---|---|---|
committer | Vladimír Čunát <vcunat@gmail.com> | 2017-11-07 06:33:09 +0100 |
commit | 2d3149f4a808c2f90ed1dbf188f7371d193e7964 (patch) | |
tree | ff781329ee8af681220d2eabcef32571f57eb8e6 /pkgs/development/libraries/icu | |
parent | f47e13866d8fe80aef8d1d367cac6d478dece6ae (diff) |
icu: only patch-out xlocale if using glibc
Diffstat (limited to 'pkgs/development/libraries/icu')
-rw-r--r-- | pkgs/development/libraries/icu/base.nix | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/pkgs/development/libraries/icu/base.nix b/pkgs/development/libraries/icu/base.nix index b12e76a90a996..8a7cf8365a5bd 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; |