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 {
|
2018-02-18 15:59:52 +00:00
|
|
|
name = "libpqxx-${version}";
|
2018-04-20 11:46:45 +01:00
|
|
|
version = "6.2.2";
|
2015-05-26 19:46:39 +01:00
|
|
|
|
2018-02-18 15:59:52 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "jtv";
|
|
|
|
repo = "libpqxx";
|
|
|
|
rev = version;
|
2018-04-20 11:46:45 +01:00
|
|
|
sha256 = "0f7mkl29v6d47kkdpl2gkb9xc5lnih2pq9pk3cq6nc2j6w758yp5";
|
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 .
|
|
|
|
'';
|
|
|
|
|
|
|
|
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 ];
|
|
|
|
};
|
|
|
|
}
|