about summary refs log tree commit diff
path: root/pkgs/development/ocaml-modules/enumerate
diff options
context:
space:
mode:
authorVincent Laporte <Vincent.Laporte@gmail.com>2015-03-06 20:28:56 +0100
committerVincent Laporte <Vincent.Laporte@gmail.com>2015-03-06 20:29:07 +0100
commit116ddda218bf5b57f35c04e0eec213a715155e5c (patch)
tree75c6a4e9dd526170acec5c1bfa778358d4cefe88 /pkgs/development/ocaml-modules/enumerate
parentd1e302121a1cbe4ead2573c8790a15ebec094af4 (diff)
downloadnixlib-116ddda218bf5b57f35c04e0eec213a715155e5c.tar
nixlib-116ddda218bf5b57f35c04e0eec213a715155e5c.tar.gz
nixlib-116ddda218bf5b57f35c04e0eec213a715155e5c.tar.bz2
nixlib-116ddda218bf5b57f35c04e0eec213a715155e5c.tar.lz
nixlib-116ddda218bf5b57f35c04e0eec213a715155e5c.tar.xz
nixlib-116ddda218bf5b57f35c04e0eec213a715155e5c.tar.zst
nixlib-116ddda218bf5b57f35c04e0eec213a715155e5c.zip
Adds ocaml-enumerate
Quotation expanders for enumerating finite types in OCaml.
Diffstat (limited to 'pkgs/development/ocaml-modules/enumerate')
-rw-r--r--pkgs/development/ocaml-modules/enumerate/default.nix24
1 files changed, 24 insertions, 0 deletions
diff --git a/pkgs/development/ocaml-modules/enumerate/default.nix b/pkgs/development/ocaml-modules/enumerate/default.nix
new file mode 100644
index 000000000000..ce20cdd47bb4
--- /dev/null
+++ b/pkgs/development/ocaml-modules/enumerate/default.nix
@@ -0,0 +1,24 @@
+{ stdenv, fetchurl, ocaml, findlib, type_conv, camlp4 }:
+
+assert stdenv.lib.versionAtLeast (stdenv.lib.getVersion ocaml) "4.00";
+
+stdenv.mkDerivation {
+  name = "ocaml-enumerate-111.08.00";
+
+  src = fetchurl {
+    url = https://ocaml.janestreet.com/ocaml-core/111.08.00/individual/enumerate-111.08.00.tar.gz;
+    sha256 = "0b6mx5p01lcpimvak4wx6aj2119707wsfzd83rwgb91bhpgzh156";
+  };
+
+  buildInputs = [ ocaml findlib ];
+  propagatedBuildInputs = [ type_conv camlp4 ];
+
+  createFindlibDestdir = true;
+
+  meta = {
+    homepage = https://ocaml.janestreet.com/;
+    description = "Quotation expanders for enumerating finite types";
+    license = stdenv.lib.licenses.asl20;
+    platforms = ocaml.meta.platforms;
+  };
+}