about summary refs log tree commit diff
diff options
context:
space:
mode:
authorUlrik Strid <ulrik.strid@outlook.com>2021-09-21 08:41:01 +0000
committerVincent Laporte <vbgl@users.noreply.github.com>2021-10-13 10:04:20 +0200
commit8b247a73bd1ce07c0535975213a26f6e273efc0a (patch)
treefc3ce2d6d6ce482a2ed1bf23711e4541e9860737
parentf470e6ddd997b4ead4352a1299c0ca7842eeaef0 (diff)
ocamlPackages.hashcons: init at 1.4
-rw-r--r--pkgs/development/ocaml-modules/hashcons/default.nix23
-rw-r--r--pkgs/top-level/ocaml-packages.nix2
2 files changed, 25 insertions, 0 deletions
diff --git a/pkgs/development/ocaml-modules/hashcons/default.nix b/pkgs/development/ocaml-modules/hashcons/default.nix
new file mode 100644
index 0000000000000..2bfaced11551a
--- /dev/null
+++ b/pkgs/development/ocaml-modules/hashcons/default.nix
@@ -0,0 +1,23 @@
+{ lib, fetchFromGitHub, buildDunePackage }:
+
+buildDunePackage rec {
+  pname = "hashcons";
+  version = "1.4";
+
+  src = fetchFromGitHub {
+    owner  = "backtracking";
+    repo   = "ocaml-${pname}";
+    rev    = "d733325eeb55878bed285120c2c088daf78f0e2b";
+    sha256 = "0h4pvwj34pndaw3pajkhl710ywwinhc9pqimgllfmkl37wz2d8zq";
+  };
+
+  useDune2 = true;
+
+  doCheck = true;
+
+  meta = {
+    description = "OCaml hash-consing library";
+    license = lib.licenses.lgpl21;
+    maintainers = [ lib.maintainers.ulrikstrid ];
+  };
+}
diff --git a/pkgs/top-level/ocaml-packages.nix b/pkgs/top-level/ocaml-packages.nix
index 91c764cddfd14..f9f2886539fe1 100644
--- a/pkgs/top-level/ocaml-packages.nix
+++ b/pkgs/top-level/ocaml-packages.nix
@@ -428,6 +428,8 @@ let
     hacl-star = callPackage ../development/ocaml-modules/hacl-star { };
     hacl-star-raw = callPackage ../development/ocaml-modules/hacl-star/raw.nix { };
 
+    hashcons = callPackage ../development/ocaml-modules/hashcons { };
+
     herelib = callPackage ../development/ocaml-modules/herelib { };
 
     hidapi = callPackage ../development/ocaml-modules/hidapi { };