2015-09-06 20:15:10 +01:00
|
|
|
{stdenv, fetchurl, ocaml, findlib, type_conv, camlp4}:
|
2012-01-16 10:20:13 +00:00
|
|
|
|
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 {
|
2015-05-24 18:48:40 +01:00
|
|
|
name = "ocaml-sexplib-111.25.00";
|
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
|
|
|
};
|
|
|
|
|
2014-09-29 22:54:20 +01:00
|
|
|
buildInputs = [ocaml findlib];
|
2015-09-06 20:15:10 +01:00
|
|
|
propagatedBuildInputs = [type_conv camlp4];
|
2012-01-16 10:20:13 +00:00
|
|
|
|
|
|
|
createFindlibDestdir = true;
|
|
|
|
|
2014-09-29 22:54:20 +01:00
|
|
|
meta = with stdenv.lib; {
|
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-29 22:54:20 +01:00
|
|
|
license = licenses.asl20;
|
2015-05-24 18:48:40 +01:00
|
|
|
maintainers = [ maintainers.vbgl maintainers.ericbmerritt ];
|
2012-01-16 10:20:13 +00:00
|
|
|
platforms = ocaml.meta.platforms;
|
|
|
|
};
|
|
|
|
}
|