2012-01-16 10:20:13 +00:00
|
|
|
{stdenv, fetchurl, ocaml, findlib, ocaml_typeconv}:
|
|
|
|
|
2014-09-19 19:09:37 +01:00
|
|
|
let
|
|
|
|
ocaml_version = (builtins.parseDrvName ocaml.name).version;
|
|
|
|
in
|
|
|
|
|
|
|
|
assert stdenv.lib.versionOlder "4.00" ocaml_version;
|
|
|
|
|
2012-01-16 10:20:13 +00:00
|
|
|
stdenv.mkDerivation {
|
2014-09-19 19:09:37 +01:00
|
|
|
name = "ocaml-sexplib-111.25.0";
|
2012-01-16 10:20:13 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
2014-09-19 19:09:37 +01:00
|
|
|
url = https://ocaml.janestreet.com/ocaml-core/111.25.00/individual/sexplib-111.25.00.tar.gz;
|
|
|
|
sha256 = "0qh0zqp5nakqpmmhh4x7cg03vqj3j2bj4zj0nqdlksai188p9ila";
|
2012-01-16 10:20:13 +00:00
|
|
|
};
|
|
|
|
|
2012-04-09 10:42:20 +01:00
|
|
|
buildInputs = [ocaml findlib ocaml_typeconv ];
|
2012-01-16 10:20:13 +00:00
|
|
|
|
|
|
|
createFindlibDestdir = true;
|
|
|
|
|
|
|
|
meta = {
|
2014-09-19 19:09:37 +01:00
|
|
|
homepage = https://ocaml.janestreet.com/;
|
2013-10-06 10:49:53 +01:00
|
|
|
description = "Library for serializing OCaml values to and from S-expressions";
|
2014-09-19 19:09:37 +01:00
|
|
|
license = stdenv.lib.asl20;
|
2012-01-16 10:20:13 +00:00
|
|
|
platforms = ocaml.meta.platforms;
|
|
|
|
};
|
|
|
|
}
|