icu: make 58.2 coexists with 59.1

This commit is contained in:
taku0 2017-10-06 23:28:28 +09:00
parent ddfcc15bb8
commit 821e3c294f
4 changed files with 27 additions and 3 deletions

View File

@ -0,0 +1,14 @@
args @ { stdenv, fetchurl, fetchpatch, fixDarwinDylibNames }:
let
keywordFix = fetchurl {
url = "http://bugs.icu-project.org/trac/changeset/39484?format=diff";
name = "icu-changeset-39484.diff";
sha256 = "0hxhpgydalyxacaaxlmaddc1sjwh65rsnpmg0j414mnblq74vmm8";
};
in
import ./base.nix {
version = "58.2";
sha256 = "036shcb3f8bm1lynhlsb4kpjm9s9c2vdiir01vg216rs2l8482ib";
patches = [ keywordFix ];
patchFlags = "-p4";
} args

View File

@ -0,0 +1,4 @@
import ./base.nix {
version = "59.1";
sha256 = "1zkmbg2932ggvpgjp8pys0cj6z8bw087y8858009shkrjfpzscki";
}

View File

@ -1,8 +1,8 @@
{ version, sha256, patches ? [], patchFlags ? "" }:
{ stdenv, fetchurl, fetchpatch, fixDarwinDylibNames }:
let
pname = "icu4c";
version = "59.1";
in
stdenv.mkDerivation {
name = pname + "-" + version;
@ -10,7 +10,7 @@ stdenv.mkDerivation {
src = fetchurl {
url = "http://download.icu-project.org/files/${pname}/${version}/${pname}-"
+ (stdenv.lib.replaceChars ["."] ["_"] version) + "-src.tgz";
sha256 = "1zkmbg2932ggvpgjp8pys0cj6z8bw087y8858009shkrjfpzscki";
inherit sha256;
};
outputs = [ "out" "dev" ];
@ -25,6 +25,8 @@ stdenv.mkDerivation {
echo Source root reset to ''${sourceRoot}
'';
inherit patchFlags patches;
preConfigure = ''
sed -i -e "s|/bin/sh|${stdenv.shell}|" configure
'' + stdenv.lib.optionalString stdenv.isArm ''

View File

@ -8634,7 +8634,10 @@ with pkgs;
hyena = callPackage ../development/libraries/hyena { };
icu = callPackage ../development/libraries/icu { };
icu58 = callPackage ../development/libraries/icu/58.nix { };
icu59 = callPackage ../development/libraries/icu/59.nix { };
icu = icu59;
id3lib = callPackage ../development/libraries/id3lib { };
@ -14544,6 +14547,7 @@ with pkgs;
libpng = libpng_apng;
python = python2;
gnused = gnused_422;
icu = icu59;
};
});