Skip to content

Commit

Permalink
libpqxx: 7.7.5 -> 7.9.2
Browse files Browse the repository at this point in the history
Release: https://github.com/jtv/libpqxx/releases/tag/7.9.2

- split development output

- enable strictDeps

- exclude postgres server files (uses lib/dev output instead)

- migrate sha256 to hash

- meta: add downloadPage, changelog
  • Loading branch information
superherointj committed Oct 18, 2024
1 parent 7982fac commit c54cfb9
Showing 1 changed file with 35 additions and 10 deletions.
45 changes: 35 additions & 10 deletions pkgs/development/libraries/libpqxx/default.nix
Original file line number Diff line number Diff line change
@@ -1,28 +1,53 @@
{ lib, stdenv, fetchFromGitHub, postgresql, python3 }:
{
fetchFromGitHub,
lib,
postgresql,
python3,
stdenv,
}:

stdenv.mkDerivation rec {
pname = "libpqxx";
version = "7.7.5";
version = "7.9.2";

src = fetchFromGitHub {
owner = "jtv";
repo = pname;
repo = "libpqxx";
rev = version;
sha256 = "sha256-mvGPMbk4b8NmPvzy5hS+Au69NtDGha8ONTEQf6I3VZE=";
hash = "sha256-I5e0iqXlZqDOMa1PlnrxpcKt1c2mbnSbVQrpi1Gh25o=";
};

nativeBuildInputs = [ python3 ];
buildInputs = [ postgresql ];
outputs = [
"dev"
"out"
];

preConfigure = ''
patchShebangs ./tools/splitconfig
postPatch = ''
patchShebangs ./tools/splitconfig.py
'';

configureFlags = [ "--enable-shared --disable-documentation" ];
CXXFLAGS = [ "-std=c++17" ];
configureFlags = [
"--disable-documentation"
"--enable-shared"
];

CXXFLAGS = lib.optionals stdenv.hostPlatform.isDarwin [ "-std=c++17" ];

strictDeps = true;

nativeBuildInputs = [
postgresql.dev
python3
];

buildInputs = [
postgresql.lib
];

meta = {
description = "C++ library to access PostgreSQL databases";
downloadPage = "https://github.com/jtv/libpqxx";
changelog = "https://github.com/jtv/libpqxx/releases/tag/${version}";
homepage = "https://pqxx.org/development/libpqxx/";
license = lib.licenses.bsd3;
platforms = lib.platforms.unix;
Expand Down

0 comments on commit c54cfb9

Please sign in to comment.