2016-11-08 03:38:26 +00:00
|
|
|
{ stdenv, fetchurl, ocaml, findlib, ocamlbuild, type_conv, camlp4 }:
|
2014-12-09 18:06:22 +00:00
|
|
|
|
|
|
|
assert stdenv.lib.versionOlder "4.00" (stdenv.lib.getVersion ocaml);
|
|
|
|
|
2018-08-21 14:20:43 +01:00
|
|
|
if stdenv.lib.versionAtLeast ocaml.version "4.06"
|
|
|
|
then throw "fieldslib-109.20.03 is not available for OCaml ${ocaml.version}"
|
|
|
|
else
|
|
|
|
|
2014-12-09 18:06:22 +00:00
|
|
|
stdenv.mkDerivation {
|
|
|
|
name = "ocaml-fieldslib-109.20.03";
|
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = https://ocaml.janestreet.com/ocaml-core/109.20.00/individual/fieldslib-109.20.03.tar.gz;
|
|
|
|
sha256 = "1dkzk0wf26rhvji80dz1r56dp6x9zqrnp87wldd4pj56jli94vir";
|
|
|
|
};
|
|
|
|
|
2016-11-08 03:38:26 +00:00
|
|
|
buildInputs = [ ocaml findlib ocamlbuild ];
|
2015-09-06 20:15:10 +01:00
|
|
|
propagatedBuildInputs = [ type_conv camlp4 ];
|
2014-12-09 18:06:22 +00:00
|
|
|
|
|
|
|
createFindlibDestdir = true;
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
homepage = https://ocaml.janestreet.com/;
|
|
|
|
description = "OCaml syntax extension to define first class values representing record fields, to get and set record fields, iterate and fold over all fields of a record and create new record values";
|
|
|
|
license = licenses.asl20;
|
|
|
|
maintainers = [ maintainers.vbgl ];
|
2015-12-24 17:49:07 +00:00
|
|
|
platforms = ocaml.meta.platforms or [];
|
2014-12-09 18:06:22 +00:00
|
|
|
};
|
|
|
|
}
|