Merge pull request #268619 from tweag/lib-descriptions
[NixPkgs.git] / pkgs / development / libraries / libpqxx / default.nix
blob2350217693101f010367002fa646a0cfa7802231
1 { lib, stdenv, fetchFromGitHub, postgresql, python3 }:
3 stdenv.mkDerivation rec {
4   pname = "libpqxx";
5   version = "7.7.0";
7   src = fetchFromGitHub {
8     owner = "jtv";
9     repo = pname;
10     rev = version;
11     sha256 = "sha256-O30czHwEDXz5xY4o3MWhmEK06OKTKMQCy0M6qwSEpy8=";
12   };
14   nativeBuildInputs = [ python3 ];
15   buildInputs = [ postgresql ];
17   preConfigure = ''
18     patchShebangs ./tools/splitconfig
19   '';
21   configureFlags = [ "--enable-shared --disable-documentation" ];
23   meta = {
24     description = "A C++ library to access PostgreSQL databases";
25     homepage = "https://pqxx.org/development/libpqxx/";
26     license = lib.licenses.bsd3;
27     platforms = lib.platforms.unix;
28     maintainers = [ lib.maintainers.eelco ];
29   };