2014-01-15 04:39:52 -08:00
|
|
|
{ stdenv, fetchurl, fixDarwinDylibNames }:
|
2007-08-08 06:20:18 -07:00
|
|
|
|
2010-09-26 12:40:36 -07:00
|
|
|
let
|
2013-07-30 07:33:46 -07:00
|
|
|
|
2010-09-26 12:40:36 -07:00
|
|
|
pname = "icu4c";
|
2013-12-28 14:28:30 -08:00
|
|
|
version = "52.1";
|
2010-09-26 12:40:36 -07:00
|
|
|
in
|
2007-08-08 06:20:18 -07:00
|
|
|
stdenv.mkDerivation {
|
2010-09-26 12:40:36 -07:00
|
|
|
name = pname + "-" + version;
|
2013-04-01 04:37:15 -07:00
|
|
|
|
2007-08-08 06:20:18 -07:00
|
|
|
src = fetchurl {
|
2010-09-26 12:40:36 -07:00
|
|
|
url = "http://download.icu-project.org/files/${pname}/${version}/${pname}-"
|
|
|
|
+ (stdenv.lib.replaceChars ["."] ["_"] version) + "-src.tgz";
|
2013-11-17 05:08:21 -08:00
|
|
|
sha256 = "14l0kl17nirc34frcybzg0snknaks23abhdxkmsqg3k9sil5wk9g";
|
2007-08-08 06:20:18 -07:00
|
|
|
};
|
2008-07-03 22:53:41 -07:00
|
|
|
|
2014-01-15 04:39:52 -08:00
|
|
|
# FIXME: This fixes dylib references in the dylibs themselves, but
|
|
|
|
# not in the programs in $out/bin.
|
|
|
|
buildInputs = stdenv.lib.optional stdenv.isDarwin fixDarwinDylibNames;
|
|
|
|
|
2013-04-11 16:31:18 -07:00
|
|
|
postUnpack = ''
|
|
|
|
sourceRoot=''${sourceRoot}/source
|
|
|
|
echo Source root reset to ''${sourceRoot}
|
|
|
|
'';
|
2013-04-01 04:37:15 -07:00
|
|
|
|
2008-07-03 22:53:41 -07:00
|
|
|
configureFlags = "--disable-debug";
|
2009-09-29 05:52:47 -07:00
|
|
|
|
2013-04-11 16:31:18 -07:00
|
|
|
enableParallelBuilding = true;
|
|
|
|
|
2009-09-29 05:52:47 -07:00
|
|
|
meta = {
|
|
|
|
description = "Unicode and globalization support library";
|
2010-09-27 11:15:33 -07:00
|
|
|
homepage = http://site.icu-project.org/;
|
2010-12-13 10:10:21 -08:00
|
|
|
maintainers = with stdenv.lib.maintainers; [raskin urkud];
|
2009-09-29 05:52:47 -07:00
|
|
|
platforms = stdenv.lib.platforms.all;
|
|
|
|
};
|
2007-08-08 06:20:18 -07:00
|
|
|
}
|