31 lines
751 B
Nix
31 lines
751 B
Nix
{ lib, stdenv, fetchFromGitHub, postgresql, doxygen, xmlto, python2, gnused }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
name = "libpqxx-${version}";
|
|
version = "6.2.5";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "jtv";
|
|
repo = "libpqxx";
|
|
rev = version;
|
|
sha256 = "15x9xlj2v66w81j90cb438qkrrcqaq4dqrvhllwyqfz4lprqnhh9";
|
|
};
|
|
|
|
nativeBuildInputs = [ gnused python2 ];
|
|
buildInputs = [ postgresql doxygen xmlto ];
|
|
|
|
preConfigure = ''
|
|
patchShebangs .
|
|
'';
|
|
|
|
configureFlags = [ "--enable-shared" ];
|
|
|
|
meta = {
|
|
description = "A C++ library to access PostgreSQL databases";
|
|
homepage = http://pqxx.org/development/libpqxx/;
|
|
license = lib.licenses.bsd3;
|
|
platforms = lib.platforms.linux;
|
|
maintainers = [ lib.maintainers.eelco ];
|
|
};
|
|
}
|