2022-04-27 09:35:20 +00:00
|
|
|
{ lib, stdenv, fetchFromGitHub, postgresql, python3 }:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "libpqxx";
|
2024-01-02 11:29:13 +00:00
|
|
|
version = "7.7.5";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "jtv";
|
|
|
|
repo = pname;
|
|
|
|
rev = version;
|
2024-01-02 11:29:13 +00:00
|
|
|
sha256 = "sha256-mvGPMbk4b8NmPvzy5hS+Au69NtDGha8ONTEQf6I3VZE=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2022-04-27 09:35:20 +00:00
|
|
|
nativeBuildInputs = [ python3 ];
|
2021-06-28 23:13:55 +00:00
|
|
|
buildInputs = [ postgresql ];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
preConfigure = ''
|
2021-06-28 23:13:55 +00:00
|
|
|
patchShebangs ./tools/splitconfig
|
2020-04-24 23:36:52 +00:00
|
|
|
'';
|
|
|
|
|
2021-06-28 23:13:55 +00:00
|
|
|
configureFlags = [ "--enable-shared --disable-documentation" ];
|
2024-01-02 11:29:13 +00:00
|
|
|
CXXFLAGS = [ "-std=c++17" ];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
meta = {
|
2024-06-20 14:57:18 +00:00
|
|
|
description = "C++ library to access PostgreSQL databases";
|
2023-02-02 18:25:31 +00:00
|
|
|
homepage = "https://pqxx.org/development/libpqxx/";
|
2020-04-24 23:36:52 +00:00
|
|
|
license = lib.licenses.bsd3;
|
2020-09-25 04:45:31 +00:00
|
|
|
platforms = lib.platforms.unix;
|
2024-09-19 14:19:46 +00:00
|
|
|
maintainers = [ ];
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|