summary refs log tree commit diff
path: root/pkgs/development/ocaml-modules/fieldslib
diff options
context:
space:
mode:
authorVincent Laporte <Vincent.Laporte@gmail.com>2014-12-09 19:06:22 +0100
committerVincent Laporte <Vincent.Laporte@gmail.com>2014-12-09 19:37:48 +0100
commitef5c48326a7fd7f6d2dc944634afc6b55381dd6d (patch)
treed6312058e58017b5783b306f9067f015299e05d5 /pkgs/development/ocaml-modules/fieldslib
parent507e78fb94376040e74588dd7a31eb44b32d1e91 (diff)
downloadnixlib-ef5c48326a7fd7f6d2dc944634afc6b55381dd6d.tar
nixlib-ef5c48326a7fd7f6d2dc944634afc6b55381dd6d.tar.gz
nixlib-ef5c48326a7fd7f6d2dc944634afc6b55381dd6d.tar.bz2
nixlib-ef5c48326a7fd7f6d2dc944634afc6b55381dd6d.tar.lz
nixlib-ef5c48326a7fd7f6d2dc944634afc6b55381dd6d.tar.xz
nixlib-ef5c48326a7fd7f6d2dc944634afc6b55381dd6d.tar.zst
nixlib-ef5c48326a7fd7f6d2dc944634afc6b55381dd6d.zip
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/
Diffstat (limited to 'pkgs/development/ocaml-modules/fieldslib')
-rw-r--r--pkgs/development/ocaml-modules/fieldslib/default.nix25
1 files changed, 25 insertions, 0 deletions
diff --git a/pkgs/development/ocaml-modules/fieldslib/default.nix b/pkgs/development/ocaml-modules/fieldslib/default.nix
new file mode 100644
index 000000000000..28b83d3af46f
--- /dev/null
+++ b/pkgs/development/ocaml-modules/fieldslib/default.nix
@@ -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;
+  };
+}