about summary refs log tree commit diff
path: root/pkgs/development/ocaml-modules
diff options
context:
space:
mode:
authorEmery Hemingway <ehmry@posteo.net>2020-12-26 18:32:36 +0100
committerVincent Laporte <Vincent.Laporte@gmail.com>2020-12-30 17:55:30 +0100
commit3d7d7b8af3e3ba8c0c009e813b6b06f376b14349 (patch)
treec3a2263476183d972e8a6b9e117fa3b345c02e49 /pkgs/development/ocaml-modules
parentcaf07b0ebf5ddad6b9be0a1295e9c032379558d9 (diff)
downloadnixlib-3d7d7b8af3e3ba8c0c009e813b6b06f376b14349.tar
nixlib-3d7d7b8af3e3ba8c0c009e813b6b06f376b14349.tar.gz
nixlib-3d7d7b8af3e3ba8c0c009e813b6b06f376b14349.tar.bz2
nixlib-3d7d7b8af3e3ba8c0c009e813b6b06f376b14349.tar.lz
nixlib-3d7d7b8af3e3ba8c0c009e813b6b06f376b14349.tar.xz
nixlib-3d7d7b8af3e3ba8c0c009e813b6b06f376b14349.tar.zst
nixlib-3d7d7b8af3e3ba8c0c009e813b6b06f376b14349.zip
ocamlPackages.diet: init at 0.4
Diffstat (limited to 'pkgs/development/ocaml-modules')
-rw-r--r--pkgs/development/ocaml-modules/diet/default.nix26
1 files changed, 26 insertions, 0 deletions
diff --git a/pkgs/development/ocaml-modules/diet/default.nix b/pkgs/development/ocaml-modules/diet/default.nix
new file mode 100644
index 000000000000..0d4229c03ea3
--- /dev/null
+++ b/pkgs/development/ocaml-modules/diet/default.nix
@@ -0,0 +1,26 @@
+{ lib, buildDunePackage, fetchurl, stdlib-shims, ounit }:
+
+buildDunePackage rec {
+  pname = "diet";
+  version = "0.4";
+
+  src = fetchurl {
+    url =
+      "https://github.com/mirage/ocaml-diet/releases/download/v${version}/diet-v${version}.tbz";
+    sha256 = "96acac2e4fdedb5f47dd8ad2562e723d85ab59cd1bd85554df21ec907b071741";
+  };
+
+  minimumOCamlVersion = "4.03";
+
+  propagatedBuildInputs = [ stdlib-shims ];
+
+  doCheck = true;
+  checkInputs = [ ounit ];
+
+  meta = with lib; {
+    homepage = "https://github.com/mirage/ocaml-diet";
+    description = "Simple implementation of Discrete Interval Encoding Trees";
+    license = licenses.isc;
+    maintainers = with maintainers; [ ehmry ];
+  };
+}