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