mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-17 23:36:17 +01:00
ocamlPackages.sexplib: init at 113.33.00+4.03
This commit is contained in:
parent
b92501f0d8
commit
be427d6e51
2 changed files with 21 additions and 1 deletions
|
@ -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;
|
||||
};
|
||||
}
|
|
@ -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;
|
||||
|
||||
|
|
Loading…
Reference in a new issue