2021-06-28 23:13:55 +00:00
|
|
|
{ lib, stdenv, fetchFromGitHub, postgresql, python3, gnused }:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "libpqxx";
|
2021-08-23 08:02:39 +00:00
|
|
|
version = "7.6.0";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "jtv";
|
|
|
|
repo = pname;
|
|
|
|
rev = version;
|
2021-08-23 08:02:39 +00:00
|
|
|
sha256 = "sha256-shcGJebjXJ3ORvcdINJFLiuW7ySqe6HyPUQioeUG/wM=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2021-06-28 23:13:55 +00:00
|
|
|
nativeBuildInputs = [ gnused python3 ];
|
|
|
|
buildInputs = [ postgresql ];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
preConfigure = ''
|
2021-06-28 23:13:55 +00:00
|
|
|
patchShebangs ./tools/splitconfig
|
2020-04-24 23:36:52 +00:00
|
|
|
'';
|
|
|
|
|
2021-06-28 23:13:55 +00:00
|
|
|
configureFlags = [ "--enable-shared --disable-documentation" ];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "A C++ library to access PostgreSQL databases";
|
|
|
|
homepage = "http://pqxx.org/development/libpqxx/";
|
|
|
|
license = lib.licenses.bsd3;
|
2020-09-25 04:45:31 +00:00
|
|
|
platforms = lib.platforms.unix;
|
2020-04-24 23:36:52 +00:00
|
|
|
maintainers = [ lib.maintainers.eelco ];
|
|
|
|
};
|
|
|
|
}
|