mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-06-12 20:55:31 +03:00
Merge: libpqxx: 7.7.5 -> 7.9.2 (#356414)
This commit is contained in:
commit
09a0f56f15
1 changed files with 37 additions and 14 deletions
|
@ -1,31 +1,54 @@
|
||||||
{ lib, stdenv, fetchFromGitHub, postgresql, python3 }:
|
{
|
||||||
|
lib,
|
||||||
|
stdenv,
|
||||||
|
fetchFromGitHub,
|
||||||
|
postgresql,
|
||||||
|
python3,
|
||||||
|
}:
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation (finalAttrs: {
|
||||||
pname = "libpqxx";
|
pname = "libpqxx";
|
||||||
version = "7.7.5";
|
version = "7.9.2";
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "jtv";
|
owner = "jtv";
|
||||||
repo = pname;
|
repo = "libpqxx";
|
||||||
rev = version;
|
rev = finalAttrs.version;
|
||||||
sha256 = "sha256-mvGPMbk4b8NmPvzy5hS+Au69NtDGha8ONTEQf6I3VZE=";
|
hash = "sha256-I5e0iqXlZqDOMa1PlnrxpcKt1c2mbnSbVQrpi1Gh25o=";
|
||||||
};
|
};
|
||||||
|
|
||||||
nativeBuildInputs = [ python3 ];
|
outputs = [
|
||||||
buildInputs = [ postgresql ];
|
"out"
|
||||||
|
"dev"
|
||||||
|
];
|
||||||
|
|
||||||
preConfigure = ''
|
nativeBuildInputs = [
|
||||||
patchShebangs ./tools/splitconfig
|
postgresql.dev
|
||||||
|
python3
|
||||||
|
];
|
||||||
|
|
||||||
|
buildInputs = [
|
||||||
|
postgresql.lib
|
||||||
|
];
|
||||||
|
|
||||||
|
postPatch = ''
|
||||||
|
patchShebangs ./tools/splitconfig.py
|
||||||
'';
|
'';
|
||||||
|
|
||||||
configureFlags = [ "--enable-shared --disable-documentation" ];
|
configureFlags = [
|
||||||
CXXFLAGS = [ "-std=c++17" ];
|
"--disable-documentation"
|
||||||
|
"--enable-shared"
|
||||||
|
];
|
||||||
|
|
||||||
|
strictDeps = true;
|
||||||
|
|
||||||
meta = {
|
meta = {
|
||||||
|
changelog = "https://github.com/jtv/libpqxx/releases/tag/${finalAttrs.version}";
|
||||||
description = "C++ library to access PostgreSQL databases";
|
description = "C++ library to access PostgreSQL databases";
|
||||||
|
downloadPage = "https://github.com/jtv/libpqxx";
|
||||||
homepage = "https://pqxx.org/development/libpqxx/";
|
homepage = "https://pqxx.org/development/libpqxx/";
|
||||||
license = lib.licenses.bsd3;
|
license = lib.licenses.bsd3;
|
||||||
platforms = lib.platforms.unix;
|
|
||||||
maintainers = [ ];
|
maintainers = [ ];
|
||||||
|
platforms = lib.platforms.unix;
|
||||||
};
|
};
|
||||||
}
|
})
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue