about summary refs log tree commit diff
path: root/pkgs/development/libraries/icu
diff options
context:
space:
mode:
authorJohn Wiegley <johnw@newartisans.com>2014-05-31 11:04:40 +0000
committerJohn Wiegley <johnw@newartisans.com>2014-05-31 11:05:47 +0000
commit6f8f3d64ff8bdb50f3816a56f01102cbaba0209b (patch)
tree2845d8002cccae03dfafc6eb27a508f97f0b56bb /pkgs/development/libraries/icu
parent61befa04511551e3bdcb8150553e5c87bcd5abe3 (diff)
downloadnixlib-6f8f3d64ff8bdb50f3816a56f01102cbaba0209b.tar
nixlib-6f8f3d64ff8bdb50f3816a56f01102cbaba0209b.tar.gz
nixlib-6f8f3d64ff8bdb50f3816a56f01102cbaba0209b.tar.bz2
nixlib-6f8f3d64ff8bdb50f3816a56f01102cbaba0209b.tar.lz
nixlib-6f8f3d64ff8bdb50f3816a56f01102cbaba0209b.tar.xz
nixlib-6f8f3d64ff8bdb50f3816a56f01102cbaba0209b.tar.zst
nixlib-6f8f3d64ff8bdb50f3816a56f01102cbaba0209b.zip
icu: fix configure to use ${stdenv.shell}
On darwin, not doing this means the configure script uses a hard-coded
/bin/sh for its echo tests, resulting in ECHO_N and ECHO_C settings in
icu-config which are incorrect for the stdenv.shell which it is actually
uses to run.
Diffstat (limited to 'pkgs/development/libraries/icu')
-rw-r--r--pkgs/development/libraries/icu/default.nix4
1 files changed, 4 insertions, 0 deletions
diff --git a/pkgs/development/libraries/icu/default.nix b/pkgs/development/libraries/icu/default.nix
index b2f2f7a083f6..12628e4c53db 100644
--- a/pkgs/development/libraries/icu/default.nix
+++ b/pkgs/development/libraries/icu/default.nix
@@ -26,6 +26,10 @@ stdenv.mkDerivation {
     echo Source root reset to ''${sourceRoot}
   '';
 
+  preConfigure = ''
+    sed -i -e "s|/bin/sh|${stdenv.shell}|" configure
+  '';
+
   configureFlags = "--disable-debug";
 
   enableParallelBuilding = true;