summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAaron L. Zeng <me@bcc32.com>2021-01-24 13:28:12 -0500
committerVincent Laporte <Vincent.Laporte@gmail.com>2021-01-30 11:37:36 +0100
commitf58c4e236f92df8d7887ce3450a3989f80ae1f6c (patch)
tree74211a05af9fad2b289e13b66c7e507b872db363
parentfce29131f5ed81d3072d14086def4b29d52f4ea7 (diff)
ocamlPackages.postgresql: init at 4.6.3
-rw-r--r--pkgs/development/ocaml-modules/postgresql/default.nix24
-rw-r--r--pkgs/top-level/ocaml-packages.nix4
2 files changed, 28 insertions, 0 deletions
diff --git a/pkgs/development/ocaml-modules/postgresql/default.nix b/pkgs/development/ocaml-modules/postgresql/default.nix
new file mode 100644
index 000000000000..82875dbd8b33
--- /dev/null
+++ b/pkgs/development/ocaml-modules/postgresql/default.nix
@@ -0,0 +1,24 @@
+{ lib, fetchFromGitHub, buildDunePackage, postgresql }:
+
+buildDunePackage rec {
+ pname = "postgresql";
+ version = "4.6.3";
+
+ minimumOCamlVersion = "4.08";
+
+ src = fetchFromGitHub {
+ owner = "mmottl";
+ repo = "postgresql-ocaml";
+ rev = version;
+ sha256 = "0fd96qqwkwjhv6pawk4wivwncszkif0sq05f0g5gd28jzwrsvpqr";
+ };
+
+ buildInputs = [ postgresql ];
+
+ meta = {
+ description = "Bindings to the PostgreSQL library";
+ license = lib.licenses.lgpl21Plus;
+ maintainers = with lib.maintainers; [ bcc32 ];
+ homepage = "https://mmottl.github.io/postgresql-ocaml";
+ };
+}
diff --git a/pkgs/top-level/ocaml-packages.nix b/pkgs/top-level/ocaml-packages.nix
index c3734ad94088..2dd4d6a09422 100644
--- a/pkgs/top-level/ocaml-packages.nix
+++ b/pkgs/top-level/ocaml-packages.nix
@@ -873,6 +873,10 @@ let
posix-types = callPackage ../development/ocaml-modules/posix/types.nix { };
+ postgresql = callPackage ../development/ocaml-modules/postgresql {
+ inherit (pkgs) postgresql;
+ };
+
ppx_bitstring = callPackage ../development/ocaml-modules/bitstring/ppx.nix { };
ppxfind = callPackage ../development/ocaml-modules/ppxfind { };