nixpkgs/pkgs/development/libraries/libpqxx/default.nix

31 lines
749 B
Nix
Raw Normal View History

2021-06-17 21:55:41 +02:00
{ lib, stdenv, fetchFromGitHub, postgresql, python3, gnused }:
2015-05-26 20:46:39 +02:00
stdenv.mkDerivation rec {
pname = "libpqxx";
2021-08-14 14:14:23 +02:00
version = "7.6.0";
2015-05-26 20:46:39 +02:00
src = fetchFromGitHub {
owner = "jtv";
repo = pname;
rev = version;
2021-08-14 14:14:23 +02:00
sha256 = "sha256-shcGJebjXJ3ORvcdINJFLiuW7ySqe6HyPUQioeUG/wM=";
2015-05-26 20:46:39 +02:00
};
2021-06-17 21:55:41 +02:00
nativeBuildInputs = [ gnused python3 ];
buildInputs = [ postgresql ];
2015-05-26 20:46:39 +02:00
preConfigure = ''
2021-06-17 21:55:41 +02:00
patchShebangs ./tools/splitconfig
2015-05-26 20:46:39 +02:00
'';
2021-06-17 21:55:41 +02:00
configureFlags = [ "--enable-shared --disable-documentation" ];
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;
2020-09-05 20:49:33 +02:00
platforms = lib.platforms.unix;
2015-05-26 20:46:39 +02:00
maintainers = [ lib.maintainers.eelco ];
};
}