nixpkgs/pkgs/by-name/li/libpqxx/package.nix
Gutyina Gergő 038f8684d0
libpqxx: split outputs
Co-authored-by: superherointj <5861043+superherointj@users.noreply.github.com>
2024-11-16 17:16:06 +01:00

55 lines
993 B
Nix

{
lib,
stdenv,
fetchFromGitHub,
postgresql,
python3,
}:
stdenv.mkDerivation (finalAttrs: {
pname = "libpqxx";
version = "7.9.2";
src = fetchFromGitHub {
owner = "jtv";
repo = "libpqxx";
rev = finalAttrs.version;
hash = "sha256-I5e0iqXlZqDOMa1PlnrxpcKt1c2mbnSbVQrpi1Gh25o=";
};
outputs = [
"out"
"dev"
];
nativeBuildInputs = [
postgresql.dev
python3
];
buildInputs = [
postgresql.lib
];
postPatch = ''
patchShebangs ./tools/splitconfig.py
'';
configureFlags = [
"--disable-documentation"
"--enable-shared"
];
strictDeps = true;
meta = {
changelog = "https://github.com/jtv/libpqxx/releases/tag/${finalAttrs.version}";
description = "C++ library to access PostgreSQL databases";
downloadPage = "https://github.com/jtv/libpqxx";
homepage = "https://pqxx.org/development/libpqxx/";
license = lib.licenses.bsd3;
maintainers = [ ];
platforms = lib.platforms.unix;
};
})