2018-03-05 10:57:42 +00:00
|
|
|
{ lib, stdenv, fetchFromGitHub, postgresql, doxygen, xmlto, python2, gnused }:
|
2015-05-26 19:46:39 +01:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2019-02-04 01:17:04 +00:00
|
|
|
pname = "libpqxx";
|
2019-07-01 23:14:48 +01:00
|
|
|
version = "6.4.5";
|
2015-05-26 19:46:39 +01:00
|
|
|
|
2018-02-18 15:59:52 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "jtv";
|
2019-02-04 01:17:04 +00:00
|
|
|
repo = pname;
|
2018-02-18 15:59:52 +00:00
|
|
|
rev = version;
|
2019-07-01 23:14:48 +01:00
|
|
|
sha256 = "0djmjr2b5x5nd2a4idv5j8s6w0kdmvil910iv1kyc7x94dirbrni";
|
2015-05-26 19:46:39 +01:00
|
|
|
};
|
|
|
|
|
2018-02-18 15:59:52 +00:00
|
|
|
nativeBuildInputs = [ gnused python2 ];
|
2018-03-05 10:57:42 +00:00
|
|
|
buildInputs = [ postgresql doxygen xmlto ];
|
2015-05-26 19:46:39 +01:00
|
|
|
|
|
|
|
preConfigure = ''
|
|
|
|
patchShebangs .
|
|
|
|
'';
|
|
|
|
|
2018-07-25 22:44:21 +01:00
|
|
|
configureFlags = [ "--enable-shared" ];
|
2015-05-26 19:46:39 +01:00
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "A C++ library to access PostgreSQL databases";
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "http://pqxx.org/development/libpqxx/";
|
2018-12-06 16:34:10 +00:00
|
|
|
license = lib.licenses.bsd3;
|
2020-09-05 19:49:33 +01:00
|
|
|
platforms = lib.platforms.unix;
|
2015-05-26 19:46:39 +01:00
|
|
|
maintainers = [ lib.maintainers.eelco ];
|
|
|
|
};
|
|
|
|
}
|