2015-09-06 20:15:10 +01:00
|
|
|
{stdenv, fetchurl, ocaml, findlib, type_conv, camlp4}:
|
2014-09-19 19:09:37 +01:00
|
|
|
|
2017-06-26 03:38:49 +01:00
|
|
|
if !stdenv.lib.versionAtLeast ocaml.version "3.12"
|
|
|
|
|| stdenv.lib.versionAtLeast ocaml.version "4.03"
|
|
|
|
then throw "sexlib-108.08.00 is not available for OCaml ${ocaml.version}" else
|
2014-09-19 19:09:37 +01:00
|
|
|
|
|
|
|
stdenv.mkDerivation {
|
|
|
|
name = "ocaml-sexplib-108.08.00";
|
|
|
|
|
|
|
|
src = fetchurl {
|
2020-04-01 02:11:51 +01:00
|
|
|
url = "https://ocaml.janestreet.com/ocaml-core/108.08.00/individual/sexplib-108.08.00.tar.gz";
|
2014-09-19 19:09:37 +01:00
|
|
|
sha256 = "11z1k1d7dbb5m957klgalimpr0r602xp5zkkbgbffib1bphasarg";
|
|
|
|
};
|
|
|
|
|
2014-09-29 22:54:20 +01:00
|
|
|
buildInputs = [ocaml findlib];
|
2015-09-06 20:15:10 +01:00
|
|
|
propagatedBuildInputs = [type_conv camlp4];
|
2014-09-19 19:09:37 +01:00
|
|
|
|
|
|
|
createFindlibDestdir = true;
|
|
|
|
|
2014-09-29 22:54:20 +01:00
|
|
|
meta = with stdenv.lib; {
|
2014-11-06 19:40:20 +00:00
|
|
|
branch = "108";
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "https://ocaml.janestreet.com/";
|
2014-09-19 19:09:37 +01:00
|
|
|
description = "Library for serializing OCaml values to and from S-expressions";
|
2014-09-29 22:54:20 +01:00
|
|
|
license = licenses.asl20;
|
|
|
|
maintainers = [ maintainers.vbgl ];
|
2015-12-24 17:49:07 +00:00
|
|
|
platforms = ocaml.meta.platforms or [];
|
2014-09-19 19:09:37 +01:00
|
|
|
};
|
|
|
|
}
|