mirror of
https://github.com/SebastianWendel/nixpkgs.git
synced 2024-11-06 02:06:46 +01:00
31 lines
749 B
Nix
31 lines
749 B
Nix
{ lib, stdenv, fetchFromGitHub, postgresql, python3, gnused }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "libpqxx";
|
|
version = "7.7.0";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "jtv";
|
|
repo = pname;
|
|
rev = version;
|
|
sha256 = "sha256-O30czHwEDXz5xY4o3MWhmEK06OKTKMQCy0M6qwSEpy8=";
|
|
};
|
|
|
|
nativeBuildInputs = [ gnused python3 ];
|
|
buildInputs = [ postgresql ];
|
|
|
|
preConfigure = ''
|
|
patchShebangs ./tools/splitconfig
|
|
'';
|
|
|
|
configureFlags = [ "--enable-shared --disable-documentation" ];
|
|
|
|
meta = {
|
|
description = "A C++ library to access PostgreSQL databases";
|
|
homepage = "http://pqxx.org/development/libpqxx/";
|
|
license = lib.licenses.bsd3;
|
|
platforms = lib.platforms.unix;
|
|
maintainers = [ lib.maintainers.eelco ];
|
|
};
|
|
}
|