2015-09-06 19:15:10 +00:00
|
|
|
{stdenv, fetchurl, ocaml, findlib, type_conv, camlp4}:
|
2012-01-16 10:20:13 +00:00
|
|
|
|
2014-09-19 18:09:37 +00: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 17:48:40 +00:00
|
|
|
name = "ocaml-sexplib-111.25.00";
|
2012-01-16 10:20:13 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
2014-09-19 18:09:37 +00: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 21:54:20 +00:00
|
|
|
buildInputs = [ocaml findlib];
|
2015-09-06 19:15:10 +00:00
|
|
|
propagatedBuildInputs = [type_conv camlp4];
|
2012-01-16 10:20:13 +00:00
|
|
|
|
|
|
|
createFindlibDestdir = true;
|
|
|
|
|
2014-09-29 21:54:20 +00:00
|
|
|
meta = with stdenv.lib; {
|
2014-09-19 18:09:37 +00:00
|
|
|
homepage = https://ocaml.janestreet.com/;
|
2013-10-06 09:49:53 +00:00
|
|
|
description = "Library for serializing OCaml values to and from S-expressions";
|
2014-09-29 21:54:20 +00:00
|
|
|
license = licenses.asl20;
|
2015-05-24 17:48:40 +00:00
|
|
|
maintainers = [ maintainers.vbgl maintainers.ericbmerritt ];
|
2015-12-24 17:49:07 +00:00
|
|
|
platforms = ocaml.meta.platforms or [];
|
2012-01-16 10:20:13 +00:00
|
|
|
};
|
|
|
|
}
|