about summary refs log tree commit diff
path: root/nixpkgs/pkgs/development/ocaml-modules/postgresql/default.nix
blob: 82875dbd8b338a9316d9beb95c20b0dbf283c51e (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
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";
  };
}