2017-01-07 19:15:59 +00:00
|
|
|
{ lib, stdenv, fetchurl, postgresql, python2, gnused }:
|
2015-05-26 19:46:39 +01:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "libpqxx-4.0.1";
|
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "http://pqxx.org/download/software/libpqxx/${name}.tar.gz";
|
|
|
|
sha256 = "0f6wxspp6rx12fkasanb0z2g2gc8dhcfwnxagx8wwqbpg6ifsz09";
|
|
|
|
};
|
|
|
|
|
2017-01-07 19:15:59 +00:00
|
|
|
buildInputs = [ postgresql python2 gnused ];
|
2015-05-26 19:46:39 +01:00
|
|
|
|
|
|
|
preConfigure = ''
|
|
|
|
patchShebangs .
|
|
|
|
'';
|
|
|
|
|
|
|
|
configureFlags = "--enable-shared";
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "A C++ library to access PostgreSQL databases";
|
|
|
|
homepage = http://pqxx.org/development/libpqxx/;
|
|
|
|
license = lib.licenses.postgresql;
|
|
|
|
platforms = lib.platforms.linux;
|
|
|
|
maintainers = [ lib.maintainers.eelco ];
|
|
|
|
};
|
|
|
|
}
|