depot/third_party/nixpkgs/pkgs/development/ocaml-modules/postgresql/default.nix
Default email 83627f9931 Project import generated by Copybara.
GitOrigin-RevId: 2893f56de08021cffd9b6b6dfc70fd9ccd51eb60
2024-06-24 14:47:55 -04:00

28 lines
715 B
Nix

{ lib, fetchFromGitHub, buildDunePackage, dune-configurator, postgresql }:
buildDunePackage rec {
pname = "postgresql";
version = "5.0.0";
useDune2 = true;
minimalOCamlVersion = "4.08";
src = fetchFromGitHub {
owner = "mmottl";
repo = "postgresql-ocaml";
rev = version;
sha256 = "1i4pnh2v00i0s7s9pcwz1x6s4xcd77d08gjjkvy0fmda6mqq6ghn";
};
nativeBuildInputs = [ postgresql ];
buildInputs = [ dune-configurator ];
propagatedBuildInputs = [ postgresql ];
meta = {
description = "Bindings to the PostgreSQL library";
license = lib.licenses.lgpl21Plus;
maintainers = with lib.maintainers; [ bcc32 ];
homepage = "https://mmottl.github.io/postgresql-ocaml";
};
}