Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

libpqxx: 7.7.5 -> 7.9.2 #345941

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
43 changes: 33 additions & 10 deletions pkgs/by-name/li/libpqxx/package.nix
Original file line number Diff line number Diff line change
@@ -1,28 +1,51 @@
{ lib, stdenv, fetchFromGitHub, postgresql, python3 }:
{
fetchFromGitHub,
lib,
postgresql,
python3,
stdenv,
}:

stdenv.mkDerivation rec {
pname = "libpqxx";
superherointj marked this conversation as resolved.
Show resolved Hide resolved
version = "7.7.5";
version = "7.9.2";

src = fetchFromGitHub {
owner = "jtv";
repo = pname;
repo = "libpqxx";
rev = version;
sha256 = "sha256-mvGPMbk4b8NmPvzy5hS+Au69NtDGha8ONTEQf6I3VZE=";
superherointj marked this conversation as resolved.
Show resolved Hide resolved
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"
];

strictDeps = true;

nativeBuildInputs = [
postgresql.dev
python3
];

buildInputs = [
postgresql.lib
];

superherointj marked this conversation as resolved.
Show resolved Hide resolved
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/";
superherointj marked this conversation as resolved.
Show resolved Hide resolved
license = lib.licenses.bsd3;
platforms = lib.platforms.unix;
Expand Down
Loading