2018-03-05 11:57:42 +01:00
|
|
|
{ lib, stdenv, fetchFromGitHub, postgresql, doxygen, xmlto, python2, gnused }:
|
2015-05-26 20:46:39 +02:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2018-02-18 16:59:52 +01:00
|
|
|
name = "libpqxx-${version}";
|
|
|
|
version = "6.1.0";
|
2015-05-26 20:46:39 +02:00
|
|
|
|
2018-02-18 16:59:52 +01:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "jtv";
|
|
|
|
repo = "libpqxx";
|
|
|
|
rev = version;
|
|
|
|
sha256 = "1dv96h10njg115216n2zm6fsvi4kb502hmhhn8cjhlfbxr9vc84q";
|
2015-05-26 20:46:39 +02:00
|
|
|
};
|
|
|
|
|
2018-02-18 16:59:52 +01:00
|
|
|
nativeBuildInputs = [ gnused python2 ];
|
2018-03-05 11:57:42 +01:00
|
|
|
buildInputs = [ postgresql doxygen xmlto ];
|
2015-05-26 20:46:39 +02: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 ];
|
|
|
|
};
|
|
|
|
}
|