depot/third_party/nixpkgs/pkgs/development/libraries/libpqxx/default.nix
Default email 159e378cbb Project import generated by Copybara.
GitOrigin-RevId: c04d5652cfa9742b1d519688f65d1bbccea9eb7e
2024-09-19 17:19:46 +03:00

31 lines
742 B
Nix

{ lib, stdenv, fetchFromGitHub, postgresql, python3 }:
stdenv.mkDerivation rec {
pname = "libpqxx";
version = "7.7.5";
src = fetchFromGitHub {
owner = "jtv";
repo = pname;
rev = version;
sha256 = "sha256-mvGPMbk4b8NmPvzy5hS+Au69NtDGha8ONTEQf6I3VZE=";
};
nativeBuildInputs = [ python3 ];
buildInputs = [ postgresql ];
preConfigure = ''
patchShebangs ./tools/splitconfig
'';
configureFlags = [ "--enable-shared --disable-documentation" ];
CXXFLAGS = [ "-std=c++17" ];
meta = {
description = "C++ library to access PostgreSQL databases";
homepage = "https://pqxx.org/development/libpqxx/";
license = lib.licenses.bsd3;
platforms = lib.platforms.unix;
maintainers = [ ];
};
}