ocamlPackages.sexplib: init at 113.33.00+4.03

This commit is contained in:
Vincent Laporte 2017-02-23 18:21:42 +00:00
parent b92501f0d8
commit be427d6e51
2 changed files with 21 additions and 1 deletions

View file

@ -0,0 +1,18 @@
{ stdenv, fetchurl, ocaml, findlib, ocamlbuild, opam, topkg }:
stdenv.mkDerivation {
name = "ocaml${ocaml.version}-sexplib-133.33.00+4.03";
src = fetchurl {
url = http://ocaml.janestreet.com/ocaml-core/113.33/files/sexplib-113.33.00+4.03.tar.gz;
sha256 = "1dirdrags3z8m80z1vczfnpdfzgcvm2wyy7g61fxdr8h3jgixpl3";
};
buildInputs = [ ocaml findlib ocamlbuild opam ];
inherit (topkg) installPhase;
meta = {
license = stdenv.lib.licenses.asl20;
inherit (ocaml.meta) platforms;
};
}

View file

@ -613,7 +613,9 @@ let
else fieldslib_p4;
sexplib =
if lib.versionOlder "4.02" ocaml.version
if lib.versionOlder "4.03" ocaml.version
then callPackage ../development/ocaml-modules/janestreet/sexplib-113_33_00.nix {}
else if lib.versionOlder "4.02" ocaml.version
then callPackage ../development/ocaml-modules/janestreet/sexplib.nix {}
else sexplib_p4;