summary refs log tree commit diff
path: root/pkgs/development/libraries/libpqxx/6.nix
blob: c9e55fd9c0191b61ecb95455ff8e3b04e26dec42 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
{ lib, stdenv, fetchFromGitHub, postgresql, doxygen, xmlto, python3, gnused }:

stdenv.mkDerivation rec {
  pname = "libpqxx";
  version = "6.4.8";

  src = fetchFromGitHub {
    owner = "jtv";
    repo = pname;
    rev = version;
    hash = "sha256-ybnW9ip1QVadmbYLP+gvo49k9ExHfnsOhSnI6NjsAQk=";
  };

  nativeBuildInputs = [ gnused python3 ];
  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.unix;
    maintainers = [ lib.maintainers.eelco ];
  };
}