@@ -1,64 +0,0 @@
1−{ stdenv, fetchurl, fetchpatch, fixDarwinDylibNames }:
2−
3−let
4− pname = "icu4c";
5− version = "57.1";
6−in
7−stdenv.mkDerivation ({
8− name = pname + "-" + version;
9−
10− src = fetchurl {
11− url = "http://download.icu-project.org/files/${pname}/${version}/${pname}-"
12− + (stdenv.lib.replaceChars ["."] ["_"] version) + "-src.tgz";
13− sha256 = "10cmkqigxh9f73y7q3p991q6j8pph0mrydgj11w1x6wlcp5ng37z";
14− };
15−
16− outputs = [ "out" "dev" ];
17− outputBin = "dev";
18−
19− # FIXME: This fixes dylib references in the dylibs themselves, but
20− # not in the programs in $out/bin.
21− buildInputs = stdenv.lib.optional stdenv.isDarwin fixDarwinDylibNames;
22−
23− postUnpack = ''
24− sourceRoot=''${sourceRoot}/source
25− echo Source root reset to ''${sourceRoot}
26− '';
27−
28− # This pre/postPatch shenanigans is to handle that the patches expect
29− # to be outside of `source`.
30− prePatch = ''
31− pushd ..
32− '';
33− postPatch = ''
34− popd
35− '';
36−
37− patches = [
38− ];
39−
40− preConfigure = ''
41− sed -i -e "s|/bin/sh|${stdenv.shell}|" configure
42− '';
43−
44− configureFlags = "--disable-debug" +
45− stdenv.lib.optionalString (stdenv.isFreeBSD || stdenv.isDarwin) " --enable-rpath";
46−
47− # remove dependency on bootstrap-tools in early stdenv build
48− postInstall = stdenv.lib.optionalString stdenv.isDarwin ''
49− sed -i 's/INSTALL_CMD=.*install/INSTALL_CMD=install/' $out/lib/icu/${version}/pkgdata.inc
50− '';
51−
52− postFixup = ''moveToOutput lib/icu "$dev" '';
53−
54− enableParallelBuilding = true;
55−
56− meta = with stdenv.lib; {
57− description = "Unicode and globalization support library";
58− homepage = http://site.icu-project.org/;
59− maintainers = with maintainers; [ raskin urkud ];
60− platforms = platforms.all;
61− };
62−} // (if stdenv.isArm then {
63− patches = [ ./0001-Disable-LDFLAGSICUDT-for-Linux.patch ];
64−} else {}))