summaryrefslogtreecommitdiffstats
path: root/pkgs/development/ocaml-modules/postgresql/default.nix
diff options
context:
space:
mode:
Diffstat (limited to 'pkgs/development/ocaml-modules/postgresql/default.nix')
-rw-r--r--pkgs/development/ocaml-modules/postgresql/default.nix24
1 files changed, 24 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";
+ };
+}