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

31 lines
753 B
Nix
Raw Normal View History

{ lib, stdenv, fetchFromGitHub, postgresql, doxygen, xmlto, python2, gnused }:
2015-05-26 18:46:39 +00:00
stdenv.mkDerivation rec {
name = "libpqxx-${version}";
version = "6.1.1";
2015-05-26 18:46:39 +00:00
src = fetchFromGitHub {
owner = "jtv";
repo = "libpqxx";
rev = version;
sha256 = "0yw0wvnpw0j560f5zv4gvmafi19d9hrknwjzl7qrss926aqx65jq";
2015-05-26 18:46:39 +00:00
};
nativeBuildInputs = [ gnused python2 ];
buildInputs = [ postgresql doxygen xmlto ];
2015-05-26 18:46:39 +00: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 ];
};
}