about summary refs log tree commit diff
path: root/pkgs/development/ocaml-modules/ocsipersist/lib.nix
diff options
context:
space:
mode:
authorVincent Laporte <Vincent.Laporte@gmail.com>2022-03-30 06:33:47 +0200
committerVincent Laporte <vbgl@users.noreply.github.com>2022-04-05 13:33:20 +0200
commit994b21d1c198d8896db00cbc1e39fd41aaef18df (patch)
treec007471ec8350f7e48c53cbd390be469dff3f68d /pkgs/development/ocaml-modules/ocsipersist/lib.nix
parentbaaa4c678c9e4d08760521f6a08a9cb650e274f7 (diff)
ocamlPackages.ocsipersist: init at 1.1.0
With support for SQLite and PostgreSQL
Diffstat (limited to 'pkgs/development/ocaml-modules/ocsipersist/lib.nix')
-rw-r--r--pkgs/development/ocaml-modules/ocsipersist/lib.nix27
1 files changed, 27 insertions, 0 deletions
diff --git a/pkgs/development/ocaml-modules/ocsipersist/lib.nix b/pkgs/development/ocaml-modules/ocsipersist/lib.nix
new file mode 100644
index 0000000000000..a2abc5d9b399e
--- /dev/null
+++ b/pkgs/development/ocaml-modules/ocsipersist/lib.nix
@@ -0,0 +1,27 @@
+{ lib, buildDunePackage, fetchFromGitHub
+, lwt_ppx, lwt
+}:
+
+buildDunePackage rec {
+  pname = "ocsipersist-lib";
+  version = "1.1.0";
+
+  useDune2 = true;
+
+  src = fetchFromGitHub {
+    owner = "ocsigen";
+    repo = "ocsipersist";
+    rev = version;
+    sha256 = "sha256:1d6kdcfjvrz0dl764mnyxc477aa57rvmzkg154qc915w2y1nbz9a";
+  };
+
+  buildInputs = [ lwt_ppx ];
+  propagatedBuildInputs = [ lwt ];
+
+  meta = {
+    description = "Persistent key/value storage (for Ocsigen) - support library";
+    license = lib.licenses.lgpl21Only;
+    maintainers = [ lib.maintainers.vbgl ];
+    inherit (src.meta) homepage;
+  };
+}