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}";
|
2018-10-14 15:24:22 +02:00
|
|
|
version = "6.2.5";
|
2015-05-26 20:46:39 +02:00
|
|
|
|
2018-02-18 16:59:52 +01:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "jtv";
|
|
|
|
repo = "libpqxx";
|
|
|
|
rev = version;
|
2018-10-14 15:24:22 +02:00
|
|
|
sha256 = "15x9xlj2v66w81j90cb438qkrrcqaq4dqrvhllwyqfz4lprqnhh9";
|
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 .
|
|
|
|
'';
|
|
|
|
|
2018-07-25 23:44:21 +02:00
|
|
|
configureFlags = [ "--enable-shared" ];
|
2015-05-26 20:46:39 +02:00
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "A C++ library to access PostgreSQL databases";
|
|
|
|
homepage = http://pqxx.org/development/libpqxx/;
|
2018-12-06 17:34:10 +01:00
|
|
|
license = lib.licenses.bsd3;
|
2015-05-26 20:46:39 +02:00
|
|
|
platforms = lib.platforms.linux;
|
|
|
|
maintainers = [ lib.maintainers.eelco ];
|
|
|
|
};
|
|
|
|
}
|