1{ 2 lib, 3 fetchurl, 4 buildDunePackage, 5 pkg-config, 6 dune-configurator, 7 libpq, 8}: 9 10buildDunePackage rec { 11 pname = "postgresql"; 12 version = "5.2.0"; 13 14 minimalOCamlVersion = "4.12"; 15 16 src = fetchurl { 17 url = "https://github.com/mmottl/postgresql-ocaml/releases/download/${version}/postgresql-${version}.tbz"; 18 hash = "sha256-uU/K7hvQljGnUzClPRdod32tpVAGd/sGqh3NqIygJ4A="; 19 }; 20 21 nativeBuildInputs = [ pkg-config ]; 22 buildInputs = [ dune-configurator ]; 23 propagatedBuildInputs = [ libpq ]; 24 25 meta = { 26 description = "Bindings to the PostgreSQL library"; 27 license = lib.licenses.lgpl21Plus; 28 changelog = "https://raw.githubusercontent.com/mmottl/postgresql-ocaml/refs/tags/${version}/CHANGES.md"; 29 maintainers = with lib.maintainers; [ bcc32 ]; 30 homepage = "https://mmottl.github.io/postgresql-ocaml"; 31 }; 32}