2022-03-31 18:11:26 +00:00
|
|
|
{ lib, stdenv, fetchFromGitHub, postgresql, python3 }:
|
2015-05-26 18:46:39 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2019-02-04 01:17:04 +00:00
|
|
|
pname = "libpqxx";
|
2022-01-11 17:28:29 +00:00
|
|
|
version = "7.7.0";
|
2015-05-26 18:46:39 +00: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;
|
2022-01-11 17:28:29 +00:00
|
|
|
sha256 = "sha256-O30czHwEDXz5xY4o3MWhmEK06OKTKMQCy0M6qwSEpy8=";
|
2015-05-26 18:46:39 +00:00
|
|
|
};
|
|
|
|
|
2022-03-31 18:11:26 +00:00
|
|
|
nativeBuildInputs = [ python3 ];
|
2021-06-17 19:55:41 +00:00
|
|
|
buildInputs = [ postgresql ];
|
2015-05-26 18:46:39 +00:00
|
|
|
|
|
|
|
preConfigure = ''
|
2021-06-17 19:55:41 +00:00
|
|
|
patchShebangs ./tools/splitconfig
|
2015-05-26 18:46:39 +00:00
|
|
|
'';
|
|
|
|
|
2021-06-17 19:55:41 +00:00
|
|
|
configureFlags = [ "--enable-shared --disable-documentation" ];
|
2015-05-26 18:46:39 +00:00
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "A C++ library to access PostgreSQL databases";
|
2020-04-01 01:11:51 +00:00
|
|
|
homepage = "http://pqxx.org/development/libpqxx/";
|
2018-12-06 16:34:10 +00:00
|
|
|
license = lib.licenses.bsd3;
|
2020-09-05 18:49:33 +00:00
|
|
|
platforms = lib.platforms.unix;
|
2015-05-26 18:46:39 +00:00
|
|
|
maintainers = [ lib.maintainers.eelco ];
|
|
|
|
};
|
|
|
|
}
|