159e378cbb
GitOrigin-RevId: c04d5652cfa9742b1d519688f65d1bbccea9eb7e
31 lines
742 B
Nix
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 = [ ];
|
|
};
|
|
}
|