ocamlPackages.ocsipersist: init at 1.1.0
With support for SQLite and PostgreSQL
This commit is contained in:
parent
baaa4c678c
commit
994b21d1c1
20
pkgs/development/ocaml-modules/ocsipersist/default.nix
Normal file
20
pkgs/development/ocaml-modules/ocsipersist/default.nix
Normal 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";
|
||||||
|
};
|
||||||
|
}
|
27
pkgs/development/ocaml-modules/ocsipersist/lib.nix
Normal file
27
pkgs/development/ocaml-modules/ocsipersist/lib.nix
Normal 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;
|
||||||
|
};
|
||||||
|
}
|
24
pkgs/development/ocaml-modules/ocsipersist/pgsql.nix
Normal file
24
pkgs/development/ocaml-modules/ocsipersist/pgsql.nix
Normal 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";
|
||||||
|
};
|
||||||
|
}
|
||||||
|
|
23
pkgs/development/ocaml-modules/ocsipersist/sqlite.nix
Normal file
23
pkgs/development/ocaml-modules/ocsipersist/sqlite.nix
Normal 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";
|
||||||
|
};
|
||||||
|
}
|
|
@ -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 { };
|
||||||
|
|
Loading…
Reference in a new issue