2015-09-06 21:15:10 +02:00
|
|
|
{stdenv, fetchurl, ocaml, findlib, type_conv, camlp4}:
|
2012-01-16 11:20:13 +01:00
|
|
|
|
2017-06-26 04:38:49 +02:00
|
|
|
if !stdenv.lib.versionAtLeast ocaml.version "4.00"
|
|
|
|
|| stdenv.lib.versionAtLeast ocaml.version "4.03"
|
|
|
|
then throw "sexlib-111.25.00 is not available for OCaml ${ocaml.version}" else
|
|
|
|
|
2014-09-19 20:09:37 +02:00
|
|
|
|
2012-01-16 11:20:13 +01:00
|
|
|
stdenv.mkDerivation {
|
2015-05-24 19:48:40 +02:00
|
|
|
name = "ocaml-sexplib-111.25.00";
|
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];
|
2015-09-06 21:15:10 +02:00
|
|
|
propagatedBuildInputs = [type_conv 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;
|
2015-05-24 19:48:40 +02:00
|
|
|
maintainers = [ maintainers.vbgl maintainers.ericbmerritt ];
|
2015-12-24 18:49:07 +01:00
|
|
|
platforms = ocaml.meta.platforms or [];
|
2012-01-16 11:20:13 +01:00
|
|
|
};
|
|
|
|
}
|