Adds ocaml-fieldslib

This library defines a syntax extension for OCaml using Camlp4 that
can be used to define first class values representing record fields,
and additional routines, to get and set record fields, iterate and
fold over all fields of a record and create new record values.

Homepage: https://ocaml.janestreet.com/
This commit is contained in:
Vincent Laporte 2014-12-09 19:06:22 +01:00
parent 507e78fb94
commit ef5c48326a
2 changed files with 27 additions and 0 deletions

View file

@ -0,0 +1,25 @@
{ stdenv, fetchurl, ocaml, findlib, ocaml_typeconv, camlp4 }:
assert stdenv.lib.versionOlder "4.00" (stdenv.lib.getVersion ocaml);
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";
};
buildInputs = [ ocaml findlib ];
propagatedBuildInputs = [ ocaml_typeconv camlp4 ];
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 ];
platforms = ocaml.meta.platforms;
};
}

View file

@ -3634,6 +3634,8 @@ let
eliom = callPackage ../development/ocaml-modules/eliom { };
fieldslib = callPackage ../development/ocaml-modules/fieldslib { };
findlib = callPackage ../development/tools/ocaml/findlib { };
fix = callPackage ../development/ocaml-modules/fix { };