3
0
Fork 0
forked from mirrors/nixpkgs

ocamlPackages.ocsipersist: init at 1.1.0

With support for SQLite and PostgreSQL
This commit is contained in:
Vincent Laporte 2022-03-30 06:33:47 +02:00 committed by Vincent Laporte
parent baaa4c678c
commit 994b21d1c1
5 changed files with 102 additions and 0 deletions

View file

@ -0,0 +1,20 @@
{ buildDunePackage, ocsipersist-lib
, ocsipersist-pgsql
, ocsipersist-sqlite
}:
buildDunePackage {
pname = "ocsipersist";
inherit (ocsipersist-lib) src version useDune2;
buildInputs = [
ocsipersist-pgsql
ocsipersist-sqlite
];
propagatedBuildInputs = [ ocsipersist-lib ];
meta = ocsipersist-lib.meta // {
description = "Persistent key/value storage (for Ocsigen) using multiple backends";
};
}

View file

@ -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;
};
}

View file

@ -0,0 +1,24 @@
{ buildDunePackage, ocsipersist-lib
, lwt_log
, ocsigen_server
, pgocaml
, xml-light
}:
buildDunePackage {
pname = "ocsipersist-pgsql";
inherit (ocsipersist-lib) version src useDune2;
propagatedBuildInputs = [
lwt_log
ocsigen_server
ocsipersist-lib
pgocaml
xml-light
];
meta = ocsipersist-lib.meta // {
description = "Persistent key/value storage (for Ocsigen) using PostgreSQL";
};
}

View file

@ -0,0 +1,23 @@
{ buildDunePackage, ocsipersist-lib
, lwt_log
, ocaml_sqlite3
, ocsigen_server
, xml-light
}:
buildDunePackage {
pname = "ocsipersist-sqlite";
inherit (ocsipersist-lib) version src useDune2;
propagatedBuildInputs = [
lwt_log
ocaml_sqlite3
ocsigen_server
ocsipersist-lib
xml-light
];
meta = ocsipersist-lib.meta // {
description = "Persistent key/value storage (for Ocsigen) using SQLite";
};
}

View file

@ -982,6 +982,14 @@ let
ocsigen-toolkit = callPackage ../development/ocaml-modules/ocsigen-toolkit { }; ocsigen-toolkit = callPackage ../development/ocaml-modules/ocsigen-toolkit { };
ocsipersist = callPackage ../development/ocaml-modules/ocsipersist {};
ocsipersist-lib = callPackage ../development/ocaml-modules/ocsipersist/lib.nix { };
ocsipersist-pgsql = callPackage ../development/ocaml-modules/ocsipersist/pgsql.nix { };
ocsipersist-sqlite = callPackage ../development/ocaml-modules/ocsipersist/sqlite.nix { };
octavius = callPackage ../development/ocaml-modules/octavius { }; octavius = callPackage ../development/ocaml-modules/octavius { };
odate = callPackage ../development/ocaml-modules/odate { }; odate = callPackage ../development/ocaml-modules/odate { };