ocamlPackages.astring: 0.8.3 -> 0.8.5
Since astring is a common dependency and the maintainance effort is minimal (package dependencies and build system didn't change) we keep the old 0.8.3 version around for OCaml < 4.05, since 0.8.4 requires a minimum of OCaml 4.05.
This commit is contained in:
parent
acae9f16a9
commit
b0c181bc9d
@ -1,12 +1,25 @@
|
|||||||
{ stdenv, fetchurl, ocaml, findlib, ocamlbuild, topkg }:
|
{ stdenv, fetchurl, ocaml, findlib, ocamlbuild, topkg }:
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
let
|
||||||
version = "0.8.3";
|
# Use astring 0.8.3 for OCaml < 4.05
|
||||||
name = "ocaml${ocaml.version}-astring-${version}";
|
param =
|
||||||
|
if stdenv.lib.versionAtLeast ocaml.version "4.05"
|
||||||
|
then {
|
||||||
|
version = "0.8.5";
|
||||||
|
sha256 = "1ykhg9gd3iy7zsgyiy2p9b1wkpqg9irw5pvcqs3sphq71iir4ml6";
|
||||||
|
} else {
|
||||||
|
version = "0.8.3";
|
||||||
|
sha256 = "0ixjwc3plrljvj24za3l9gy0w30lsbggp8yh02lwrzw61ls4cri0";
|
||||||
|
};
|
||||||
|
in
|
||||||
|
|
||||||
|
stdenv.mkDerivation {
|
||||||
|
name = "ocaml${ocaml.version}-astring-${param.version}";
|
||||||
|
inherit (param) version;
|
||||||
|
|
||||||
src = fetchurl {
|
src = fetchurl {
|
||||||
url = "https://erratique.ch/software/astring/releases/astring-${version}.tbz";
|
url = "https://erratique.ch/software/astring/releases/astring-${param.version}.tbz";
|
||||||
sha256 = "0ixjwc3plrljvj24za3l9gy0w30lsbggp8yh02lwrzw61ls4cri0";
|
inherit (param) sha256;
|
||||||
};
|
};
|
||||||
|
|
||||||
buildInputs = [ ocaml findlib ocamlbuild topkg ];
|
buildInputs = [ ocaml findlib ocamlbuild topkg ];
|
||||||
|
Loading…
x
Reference in New Issue
Block a user