libpq: init at 17.2

Resolves #61580

Changed files
+364 -214
pkgs
applications
blockchains
lighthouse
gis
misc
pgmodeler
networking
instant-messengers
teamspeak
p2p
gnunet
office
kexi
ledger-web
libreoffice
build-support
by-name
al
algol68g
cp
cppdb
cy
cyrus-imapd
di
diesel-cli
dr
drogon
ds
dspam
ex
fl
fluent-bit
fr
freeradius
ga
gammu
in
inspircd
ke
kepler
li
libdbiDrivers
libpqxx
lu
luanti
ma
mapserver
n8
od
odyssey
op
opendbx
os
osm2pgsql
pa
pam_pgsql
pd
pg
pgbackrest
pgmanage
pgpool
pm
pmacct
ps
pspg
psqlodbc
sa
so
sp
spatialite-gui
st
stellar-core
sy
syndicate_utils
ta
taler-challenger
taler-exchange
taler-sync
th
thc-hydra
tn
tntdb
ul
ulogd
vi
virtualpg
za
zammad
development
ada-modules
gnatcoll
compilers
urweb
libraries
gdal
kdb
libgda
librdf
mapnik
qt-5
modules
qt-6
modules
qtbase
soci
wt
lua-modules
ocaml-modules
postgresql
octave-modules
database
python-modules
pgsanity
psycopg
ruby-modules
gem-config
games
ldmud
servers
http
openresty
mail
dovecot
opensmtpd
postfix
monitoring
mx-puppet-discord
nominatim
sip
freeswitch
sql
postgresql
web-apps
lemmy
tools
backup
bacula
package-management
disnix
dysnomia
security
vaultwarden
system
collectd
rsyslog
text
top-level
+2 -2
pkgs/applications/blockchains/lighthouse/default.nix
···
, nix-update-script
, openssl
, pkg-config
-
, postgresql
+
, libpq
, protobuf
, rustPlatform
, rust-jemalloc-sys
···
];
nativeCheckInputs = [
-
postgresql
+
libpq
];
passthru = {
+3 -3
pkgs/applications/gis/grass/default.nix
···
, netcdf
, pdal
, pkg-config
-
, postgresql
+
, libpq
, proj
, python3Packages
, readline
···
libxml2
netcdf
pdal
-
postgresql
+
libpq
proj
readline
sqlite
···
"--with-openmp"
"--with-pdal"
"--with-postgres"
-
"--with-postgres-libs=${postgresql.lib}/lib/"
+
"--with-postgres-libs=${libpq}/lib/"
"--with-proj-includes=${proj.dev}/include"
"--with-proj-libs=${proj}/lib"
"--with-proj-share=${proj}/share/proj"
+2 -2
pkgs/applications/gis/qgis/unwrapped-ltr.nix
···
grass,
gsl,
hdf5,
+
libpq,
libspatialindex,
libspatialite,
libzip,
···
ninja,
openssl,
pdal,
-
postgresql,
proj,
protobuf,
python3,
···
geos
gsl
hdf5
+
libpq
libspatialindex
libspatialite
libzip
netcdf
openssl
pdal
-
postgresql
proj
protobuf
qca-qt5
+2 -2
pkgs/applications/gis/qgis/unwrapped.nix
···
, ninja
, openssl
, pdal
-
, postgresql
+
, libpq
, proj
, protobuf
, python3
···
netcdf
openssl
pdal
-
postgresql
+
libpq
proj
protobuf
qca-qt5
+4 -5
pkgs/applications/misc/pgmodeler/default.nix
···
qmake,
qtwayland,
qtsvg,
-
postgresql,
+
libpq,
cups,
libxml2,
}:
···
"CONFIG+=release"
]
++ lib.optionals stdenv.hostPlatform.isDarwin [
-
"PGSQL_INC=${lib.getDev postgresql}/include"
-
"PGSQL_LIB=${lib.getLib postgresql}/lib/libpq.dylib"
+
"PGSQL_INC=${lib.getDev libpq}/include"
+
"PGSQL_LIB=${lib.getLib libpq}/lib/libpq.dylib"
"XML_INC=${libxml2.dev}/include/libxml2"
"XML_LIB=${libxml2.out}/lib/libxml2.dylib"
"PREFIX=${placeholder "out"}/Applications/pgModeler.app/Contents"
];
-
# todo: libpq would suffice here. Unfortunately this won't work, if one uses only postgresql.lib here.
buildInputs =
[
-
postgresql
+
libpq
qtsvg
]
++ lib.optionals stdenv.hostPlatform.isLinux [ qtwayland ]
+2 -2
pkgs/applications/networking/instant-messengers/teamspeak/server.nix
···
lib,
stdenv,
fetchurl,
-
postgresql,
+
libpq,
autoPatchelfHook,
writeScript,
}:
···
buildInputs = [
stdenv.cc.cc
-
postgresql.lib
+
libpq
];
nativeBuildInputs = [ autoPatchelfHook ];
+2 -2
pkgs/applications/networking/p2p/gnunet/default.nix
···
, makeWrapper, ncurses, pkg-config, libxml2, sqlite, zlib
, libpulseaudio, libopus, libogg, jansson, libsodium
-
, postgresqlSupport ? true, postgresql }:
+
, postgresqlSupport ? true, libpq }:
stdenv.mkDerivation rec {
pname = "gnunet";
···
adns curl gmp gnutls libextractor libgcrypt libgnurl libidn
libmicrohttpd libunistring libxml2 ncurses gettext libsodium
sqlite zlib libpulseaudio libopus libogg jansson
-
] ++ lib.optional postgresqlSupport postgresql;
+
] ++ lib.optional postgresqlSupport libpq;
preConfigure = ''
# Brute force: since nix-worker chroots don't provide
+2 -2
pkgs/applications/office/kexi/default.nix
···
kreport,
lcms2,
libmysqlclient,
+
libpq,
marble,
-
postgresql,
}:
mkDerivation rec {
···
kreport
lcms2
libmysqlclient
+
libpq
marble
-
postgresql
];
propagatedUserEnvPkgs = [ kproperty ];
+2 -2
pkgs/applications/office/ledger-web/default.nix
···
bundlerApp,
bundlerUpdateScript,
withPostgresql ? true,
-
postgresql,
+
libpq,
withSqlite ? false,
sqlite,
}:
···
gemdir = ./.;
exes = [ "ledger_web" ];
-
buildInputs = lib.optional withPostgresql postgresql ++ lib.optional withSqlite sqlite;
+
buildInputs = lib.optional withPostgresql libpq ++ lib.optional withSqlite sqlite;
passthru.updateScript = bundlerUpdateScript "ledger-web";
+2 -2
pkgs/applications/office/libreoffice/default.nix
···
, kwindowsystem ? null
, variant ? "fresh"
, symlinkJoin
-
, postgresql
+
, libpq
, makeFontsConf
, amiri
, caladea
···
pam
perl
poppler
-
postgresql
+
libpq
python311
sane-backends
unixODBC
+2 -2
pkgs/build-support/rust/default-crate-overrides.nix
···
, openssl
, pango
, pkg-config
-
, postgresql
+
, libpq
, protobuf
, python3
, rdkafka
···
pq-sys = attr: {
nativeBuildInputs = [ pkg-config ];
-
buildInputs = [ postgresql ];
+
buildInputs = [ libpq ];
};
prost-build = attr: {
+2 -2
pkgs/by-name/al/algol68g/package.nix
···
curl,
gmp,
gsl,
+
libpq,
mpfr,
ncurses,
plotutils,
-
postgresql,
pkg-config,
withPDFDoc ? true,
}:
···
gmp
gsl
plotutils
-
postgresql
+
libpq
];
strictDeps = true;
+2 -2
pkgs/by-name/cp/cppdb/package.nix
···
cmake,
sqlite,
libmysqlclient,
-
postgresql,
+
libpq,
unixODBC,
}:
···
buildInputs = [
sqlite
libmysqlclient
-
postgresql
+
libpq
unixODBC
];
+2 -2
pkgs/by-name/cy/cyrus-imapd/package.nix
···
libchardet,
libical,
libmysqlclient,
+
libpq,
libsrs2,
libuuid,
libxml2,
···
openssl,
pcre2,
perl,
-
postgresql,
rsync,
shapelib,
sqlite,
···
xapian
]
++ lib.optionals withMySQL [ libmysqlclient ]
-
++ lib.optionals withPgSQL [ postgresql ]
+
++ lib.optionals withPgSQL [ libpq ]
++ lib.optionals withSQLite [ sqlite ];
enableParallelBuilding = true;
+2 -2
pkgs/by-name/di/diesel-cli/package.nix
···
installShellFiles,
libiconv,
libmysqlclient,
+
libpq,
nix-update-script,
openssl,
pkg-config,
-
postgresql,
rustPlatform,
sqlite,
testers,
···
buildInputs =
[ openssl ]
++ lib.optional sqliteSupport sqlite
-
++ lib.optional postgresqlSupport postgresql
+
++ lib.optional postgresqlSupport libpq
++ lib.optionals mysqlSupport [
libmysqlclient
zlib
+2 -2
pkgs/by-name/dr/drogon/package.nix
···
sqliteSupport ? true,
sqlite,
postgresSupport ? false,
-
postgresql,
+
libpq,
redisSupport ? false,
hiredis,
mysqlSupport ? false,
···
c-ares
]
++ lib.optional sqliteSupport sqlite
-
++ lib.optional postgresSupport postgresql
+
++ lib.optional postgresSupport libpq
++ lib.optional redisSupport hiredis
# drogon uses mariadb for mysql (see https://github.com/drogonframework/drogon/wiki/ENG-02-Installation#Library-Dependencies)
++ lib.optionals mysqlSupport [
+3 -3
pkgs/by-name/ds/dspam/package.nix
···
zlib,
mariadb-connector-c,
withPgSQL ? false,
-
postgresql,
+
libpq,
withSQLite ? false,
sqlite,
withDB ? false,
···
zlib
mariadb-connector-c.out
]
-
++ lib.optional withPgSQL postgresql
+
++ lib.optional withPgSQL libpq
++ lib.optional withSQLite sqlite
++ lib.optional withDB db;
nativeBuildInputs = [ makeWrapper ];
···
"--with-mysql-includes=${mariadb-connector-c.dev}/include/mysql"
"--with-mysql-libraries=${mariadb-connector-c.out}/lib/mysql"
]
-
++ lib.optional withPgSQL "--with-pgsql-libraries=${postgresql.lib}/lib";
+
++ lib.optional withPgSQL "--with-pgsql-libraries=${libpq}/lib";
# Workaround build failure on -fno-common toolchains like upstream
# gcc-10. Otherwise build fails as:
+4 -4
pkgs/by-name/ex/exim/package.nix
···
libmysqlclient,
zlib,
enablePgSQL ? false,
-
postgresql,
+
libpq,
enableSqlite ? false,
sqlite,
enableAuthDovecot ? false,
···
libmysqlclient
zlib
]
-
++ lib.optional enablePgSQL postgresql
+
++ lib.optional enablePgSQL libpq
++ lib.optionals enableSqlite [
sqlite
sqlite.dev
···
''}
${lib.optionalString enablePgSQL ''
s:^# \(LOOKUP_PGSQL=yes\)$:\1:
-
s:^\(LOOKUP_LIBS\)=\(.*\):\1=\2 -lpq -L${postgresql.lib}/lib:
-
s:^# \(LOOKUP_LIBS\)=.*:\1=-lpq -L${postgresql.lib}/lib:
+
s:^\(LOOKUP_LIBS\)=\(.*\):\1=\2 -lpq -L${libpq}/lib:
+
s:^# \(LOOKUP_LIBS\)=.*:\1=-lpq -L${libpq}/lib:
''}
${lib.optionalString enableSqlite ''
s:^# \(LOOKUP_SQLITE=yes\)$:\1:
+2 -2
pkgs/by-name/fl/fluent-bit/package.nix
···
flex,
bison,
systemd,
-
postgresql,
+
libpq,
openssl,
libyaml,
darwin,
···
[
openssl
libyaml
-
postgresql
+
libpq
]
++ lib.optionals stdenv.hostPlatform.isLinux [ systemd ]
++ lib.optionals stdenv.hostPlatform.isDarwin [
+2 -2
pkgs/by-name/fr/freeradius/package.nix
···
withMysql ? false,
libmysqlclient,
withPostgresql ? false,
-
postgresql,
+
libpq,
withPcap ? true,
libpcap,
withRedis ? false,
···
++ lib.optional withLdap openldap
++ lib.optional withMemcached libmemcached
++ lib.optional withMysql libmysqlclient
-
++ lib.optional withPostgresql postgresql
+
++ lib.optional withPostgresql libpq
++ lib.optional withPcap libpcap
++ lib.optional withRedis hiredis
++ lib.optional withRest curl
+2 -2
pkgs/by-name/ga/gammu/package.nix
···
libdbi ? null,
libdbiDrivers ? null,
postgresSupport ? false,
-
postgresql ? null,
+
libpq ? null,
}:
stdenv.mkDerivation rec {
···
libdbi
libdbiDrivers
]
-
++ lib.optionals postgresSupport [ postgresql ];
+
++ lib.optionals postgresSupport [ libpq ];
meta = with lib; {
homepage = "https://wammu.eu/gammu/";
+2 -2
pkgs/by-name/in/inspircd/package.nix
···
, pkg-config
, libargon2
, openldap
-
, postgresql
+
, libpq
, libmysqlclient
, pcre
, pcre2
···
];
ldap = [ openldap ];
mysql = [ libmysqlclient ];
-
pgsql = [ postgresql ];
+
pgsql = [ libpq ];
regex_pcre = [ pcre ];
regex_pcre2 = [ pcre2 ];
regex_re2 = [ re2 ];
+2 -2
pkgs/by-name/ke/kepler/package.nix
···
stdenv,
darwin,
fetchFromGitHub,
+
libpq,
openssl,
pkg-config,
-
postgresql,
rustPlatform,
zstd,
}:
···
buildInputs =
[
+
libpq
openssl
-
postgresql
zstd
]
++ lib.optionals stdenv.hostPlatform.isDarwin [
+4 -3
pkgs/by-name/li/libdbiDrivers/package.nix
···
# TODO: migrate away from overriding packages to null
libmysqlclient ? null,
sqlite ? null,
-
postgresql ? null,
+
libpq ? null,
}:
stdenv.mkDerivation rec {
···
buildInputs = [
libdbi
sqlite
-
postgresql
] ++ lib.optional (libmysqlclient != null) libmysqlclient;
patches = [
···
"--with-sqlite3-incdir=${sqlite.dev}/include/sqlite"
"--with-sqlite3-libdir=${sqlite.out}/lib/sqlite"
]
-
++ lib.optionals (postgresql != null) [
+
++ lib.optionals (libpq != null) [
"--with-pgsql"
+
"--with-pgsql-incdir=${libpq.dev}/include"
+
"--with-pgsql-libdir=${libpq}/lib/"
];
env.NIX_CFLAGS_COMPILE = toString (
+2 -3
pkgs/by-name/li/libpqxx/package.nix
···
lib,
stdenv,
fetchFromGitHub,
-
postgresql,
+
libpq,
python3,
}:
···
];
nativeBuildInputs = [
-
postgresql.dev
python3
];
buildInputs = [
-
postgresql.lib
+
libpq
];
postPatch = ''
+2 -2
pkgs/by-name/lu/luanti/package.nix
···
gmp,
libspatialindex,
leveldb,
-
postgresql,
+
libpq,
hiredis,
libiconv,
ninja,
···
]
++ lib.optionals buildServer [
leveldb
-
postgresql
+
libpq
hiredis
prometheus-cpp
];
+2 -2
pkgs/by-name/ma/mapserver/package.nix
···
harfbuzz,
libjpeg,
libpng,
+
libpq,
librsvg,
libxml2,
pkg-config,
-
postgresql,
proj,
protobufc,
python3,
···
harfbuzz
libjpeg
libpng
+
libpq
librsvg
libxml2
-
postgresql
proj
protobufc
zlib
+2 -2
pkgs/by-name/n8/n8n/package.nix
···
xcbuild,
libkrb5,
libmongocrypt,
-
postgresql,
+
libpq,
makeWrapper,
}:
···
nodejs
libkrb5
libmongocrypt
-
postgresql
+
libpq
];
buildPhase = ''
+5 -3
pkgs/by-name/od/odyssey/package.nix
···
fetchFromGitHub,
cmake,
openssl,
-
postgresql,
+
libpq,
zstd,
fetchpatch,
}:
···
nativeBuildInputs = [ cmake ];
buildInputs = [
openssl
-
postgresql
+
libpq
zstd
];
cmakeFlags = [
-
"-DPQ_LIBRARY=${postgresql.lib}/lib"
"-DBUILD_COMPRESSION=ON"
+
"-DPOSTGRESQL_INCLUDE_DIR=${lib.getDev libpq}/include/postgresql/server"
+
"-DPOSTGRESQL_LIBRARY=${libpq}/lib"
+
"-DPOSTGRESQL_LIBPGPORT=${lib.getDev libpq}/lib"
];
installPhase = ''
+2 -2
pkgs/by-name/op/opendbx/package.nix
···
fetchurl,
readline,
libmysqlclient,
-
postgresql,
+
libpq,
sqlite,
}:
···
buildInputs = [
readline
libmysqlclient
-
postgresql
+
libpq
sqlite
];
+2 -2
pkgs/by-name/os/osm2pgsql/package.nix
···
cli11,
zlib,
boost,
-
postgresql,
+
libpq,
python3,
withLuaJIT ? false,
lua,
···
expat
fmt_11
libosmium
+
libpq
nlohmann_json
opencv
-
postgresql
potrace
proj
protozero
+2 -2
pkgs/by-name/pa/pam_pgsql/package.nix
···
fetchFromGitHub,
autoreconfHook,
pkg-config,
-
postgresql,
+
libpq,
libgcrypt,
pam,
libxcrypt,
···
buildInputs = [
libgcrypt
pam
-
postgresql
+
libpq
libxcrypt
];
+2 -2
pkgs/by-name/pd/pdal/package.nix
···
, libxml2
, openscenegraph
, pkg-config
-
, postgresql
+
, libpq
, proj
, sqlite
, tiledb
···
libtiff
libxml2
openscenegraph
-
postgresql
+
libpq
proj
sqlite
tiledb
+2 -2
pkgs/by-name/pd/pdns/package.nix
···
openssl,
systemd,
mariadb-connector-c,
-
postgresql,
+
libpq,
lua,
openldap,
geoip,
···
buildInputs = [
boost
mariadb-connector-c
-
postgresql
+
libpq
lua
openldap
sqlite
+2 -2
pkgs/by-name/pg/pgbackrest/package.nix
···
libbacktrace,
bzip2,
lz4,
-
postgresql,
+
libpq,
libxml2,
libyaml,
zlib,
···
libbacktrace
bzip2
lz4
-
postgresql
+
libpq
libxml2
libyaml
zlib
+2 -2
pkgs/by-name/pg/pgmanage/package.nix
···
lib,
stdenv,
fetchFromGitHub,
-
postgresql,
+
libpq,
openssl,
nixosTests,
}:
···
'';
buildInputs = [
-
postgresql
+
libpq
openssl
];
+2 -2
pkgs/by-name/pg/pgpool/package.nix
···
{ lib
, stdenv
, fetchurl
-
, postgresql
+
, libpq
, openssl
, libxcrypt
, withPam ? stdenv.hostPlatform.isLinux
···
};
buildInputs = [
-
postgresql
+
libpq
openssl
libxcrypt
] ++ lib.optional withPam pam;
+2 -2
pkgs/by-name/pm/pmacct/package.nix
···
withSQLite ? true,
sqlite,
withPgSQL ? true,
-
postgresql,
+
libpq,
withMysql ? true,
libmysqlclient,
zlib,
···
++ lib.optional withJansson jansson
++ lib.optional withNflog libnetfilter_log
++ lib.optional withSQLite sqlite
-
++ lib.optional withPgSQL postgresql
+
++ lib.optional withPgSQL libpq
++ lib.optionals withMysql [
libmysqlclient
zlib
+2 -2
pkgs/by-name/ps/pspg/package.nix
···
pkg-config,
installShellFiles,
readline,
-
postgresql,
+
libpq,
}:
stdenv.mkDerivation rec {
···
];
buildInputs = [
gnugrep
+
libpq
ncurses
readline
-
postgresql
];
makeFlags = [ "PREFIX=${placeholder "out"}" ];
+4 -4
pkgs/by-name/ps/psqlodbc/package.nix
···
fetchFromGitHub,
nix-update-script,
autoreconfHook,
-
postgresql,
+
libpq,
openssl,
withLibiodbc ? false,
libiodbc,
···
buildInputs =
[
-
postgresql
+
libpq
openssl
]
++ lib.optional withLibiodbc libiodbc
···
};
configureFlags = [
-
"--with-libpq=${lib.getDev postgresql}/bin/pg_config"
+
"--with-libpq=${lib.getDev libpq}"
] ++ lib.optional withLibiodbc "--with-iodbc=${libiodbc}";
meta = with lib; {
···
description = "ODBC driver for PostgreSQL";
license = licenses.lgpl2;
platforms = platforms.unix;
-
maintainers = postgresql.meta.maintainers;
+
maintainers = libpq.meta.maintainers;
};
}
+2 -2
pkgs/by-name/sa/saga/package.nix
···
opencv,
vigra,
pdal,
-
postgresql,
+
libpq,
darwin,
unixODBC,
poppler,
···
libharu
opencv
vigra
-
postgresql
+
libpq
libiodbc
xz
qhull
+3 -3
pkgs/by-name/so/sope/package.nix
···
{ gnustep, lib, fetchFromGitHub, fetchpatch, libxml2, openssl
-
, openldap, mariadb, libmysqlclient, postgresql }:
+
, openldap, mariadb, libmysqlclient, libpq }:
gnustep.stdenv.mkDerivation rec {
pname = "sope";
···
buildInputs = [ gnustep.base libxml2 openssl ]
++ lib.optional (openldap != null) openldap
++ lib.optionals (mariadb != null) [ libmysqlclient mariadb ]
-
++ lib.optional (postgresql != null) postgresql;
+
++ lib.optional (libpq != null) libpq;
# Configure directories where files are installed to. Everything is automatically
# put into $out (thanks GNUstep) apart from the makefiles location which is where
···
configureFlags = [ "--prefix=" "--disable-debug" "--enable-xml" "--with-ssl=ssl" ]
++ lib.optional (openldap != null) "--enable-openldap"
++ lib.optional (mariadb != null) "--enable-mysql"
-
++ lib.optional (postgresql != null) "--enable-postgresql";
+
++ lib.optional (libpq != null) "--enable-postgresql";
env = {
GNUSTEP_CONFIG_FILE = "/build/GNUstep.conf";
+2 -2
pkgs/by-name/sp/spatialite-gui/package.nix
···
curl,
freexl,
geos,
+
libpq,
librasterlite2,
librttopo,
libspatialite,
···
lz4,
minizip,
openjpeg,
-
postgresql,
proj,
sqlite,
virtualpg,
···
curl
freexl
geos
+
libpq
librasterlite2
librttopo
libspatialite
···
lz4
minizip
openjpeg
-
postgresql
proj
sqlite
virtualpg
+2 -2
pkgs/by-name/st/stellar-core/package.nix
···
flex,
gitMinimal,
lib,
+
libpq,
libtool,
libunwind,
pkg-config,
-
postgresql,
ripgrep,
stdenv,
}:
···
propagatedBuildInputs = [
bison
flex
-
postgresql
+
libpq
];
enableParallelBuilding = true;
+2 -2
pkgs/by-name/sy/syndicate_utils/package.nix
···
libxml2,
libxslt,
openssl,
-
postgresql,
+
libpq,
sqlite,
}:
···
};
buildInputs = [
-
postgresql.out
+
libpq
sqlite
libxml2
libxslt
+2 -2
pkgs/by-name/ta/taler-challenger/package.nix
···
libmicrohttpd,
libsodium,
libtool,
-
postgresql,
+
libpq,
taler-exchange,
taler-merchant,
runtimeShell,
···
libgcrypt
libgnurl
libmicrohttpd
+
libpq
libsodium
libtool
-
postgresql
taler-exchange
taler-merchant
];
+2 -2
pkgs/by-name/ta/taler-exchange/package.nix
···
libsodium,
libunistring,
pkg-config,
-
postgresql,
+
libpq,
autoreconfHook,
python3,
recutils,
···
libmicrohttpd
jansson
libsodium
-
postgresql
+
libpq
curl
recutils
gettext
+2 -2
pkgs/by-name/ta/taler-sync/package.nix
···
gnunet,
jansson,
libmicrohttpd,
+
libpq,
libsodium,
libtool,
-
postgresql,
taler-exchange,
taler-merchant,
runtimeShell,
···
jansson
libgcrypt
libmicrohttpd
+
libpq
libsodium
libtool
-
postgresql
taler-exchange
taler-merchant
];
+2 -2
pkgs/by-name/th/thc-hydra/package.nix
···
pcre,
libssh,
libmysqlclient,
-
postgresql,
+
libpq,
samba,
withGUI ? false,
makeWrapper,
···
pcre
libssh
libmysqlclient
-
postgresql
+
libpq
samba
] ++ lib.optional withGUI gtk2;
+2 -2
pkgs/by-name/tn/tntdb/package.nix
···
fetchFromGitHub,
autoreconfHook,
cxxtools,
-
postgresql,
+
libpq,
libmysqlclient,
sqlite,
zlib,
···
buildInputs = [
cxxtools
-
postgresql
+
libpq
libmysqlclient
sqlite
zlib
+2 -2
pkgs/by-name/ul/ulogd/package.nix
···
autoconf,
autogen,
libtool,
-
postgresql,
+
libpq,
libmysqlclient,
sqlite,
pkg-config,
···
libmnl
libnfnetlink
libpcap
-
postgresql
+
libpq
libmysqlclient
sqlite
];
+3 -3
pkgs/by-name/vi/virtualpg/package.nix
···
stdenv,
fetchurl,
validatePkgConfig,
-
postgresql,
+
libpq,
sqlite,
darwin,
}:
···
nativeBuildInputs = [
validatePkgConfig
-
postgresql # for pg_config
+
libpq # for pg_config
];
buildInputs = [
-
postgresql
+
libpq
sqlite
] ++ lib.optionals stdenv.hostPlatform.isDarwin [ darwin.apple_sdk.frameworks.Kerberos ];
+2 -1
pkgs/by-name/za/zammad/package.nix
···
procps,
ruby,
postgresql,
+
libpq,
imlib2,
jq,
moreutils,
···
];
gemConfig = defaultGemConfig // {
pg = attrs: {
-
buildFlags = [ "--with-pg-config=${lib.getDev postgresql}/bin/pg_config" ];
+
buildInputs = [ libpq ];
};
rszr = attrs: {
buildInputs = [
+2 -2
pkgs/development/ada-modules/gnatcoll/db.nix
···
, gnatcoll-iconv
, gnatcoll-readline
, sqlite
-
, postgresql
+
, libpq
}:
let
···
];
postgres = [
gnatcoll-sql
-
postgresql
+
libpq
];
sqlite = [
gnatcoll-sql
+3 -3
pkgs/development/compilers/urweb/default.nix
···
openssl,
mlton,
libmysqlclient,
-
postgresql,
+
libpq,
sqlite,
gcc,
icu,
···
openssl
mlton
libmysqlclient
-
postgresql
+
libpq
sqlite
icu
];
···
export CCARGS="-I$out/include \
-L${lib.getLib openssl}/lib \
-L${libmysqlclient}/lib \
-
-L${postgresql.lib}/lib \
+
-L${libpq}/lib \
-L${sqlite.out}/lib";
'';
+2 -2
pkgs/development/libraries/gdal/default.nix
···
libjpeg,
libjxl,
libmysqlclient,
+
libpq,
libpng,
libspatialite,
libtiff,
···
pcre2,
pkg-config,
poppler,
-
postgresql,
proj,
python3,
qhull,
···
libhwy
];
mysqlDeps = lib.optionals useMysql [ libmysqlclient ];
-
postgresDeps = lib.optionals usePostgres [ postgresql ];
+
postgresDeps = lib.optionals usePostgres [ libpq ];
popplerDeps = lib.optionals usePoppler [ poppler ];
arrowDeps = lib.optionals useArrow [ arrow-cpp ];
hdfDeps = lib.optionals useHDF [
+2 -2
pkgs/development/libraries/kdb/default.nix
···
kcoreaddons,
python3,
sqlite,
-
postgresql,
+
libpq,
libmysqlclient,
qttools,
}:
···
kcoreaddons
python3
sqlite
-
postgresql
+
libpq
libmysqlclient
];
+3 -3
pkgs/development/libraries/libgda/6.x.nix
···
mysqlSupport ? false,
libmysqlclient ? null,
postgresSupport ? false,
-
postgresql ? null,
+
libpq ? null,
}:
assert mysqlSupport -> libmysqlclient != null;
-
assert postgresSupport -> postgresql != null;
+
assert postgresSupport -> libpq != null;
stdenv.mkDerivation rec {
pname = "libgda";
···
libmysqlclient
]
++ lib.optionals postgresSupport [
-
postgresql
+
libpq
];
env.NIX_CFLAGS_COMPILE = lib.optionalString stdenv.cc.isClang "-Wno-error=incompatible-function-pointer-types";
+2 -2
pkgs/development/libraries/libgda/default.nix
···
mysqlSupport ? false,
libmysqlclient,
postgresSupport ? false,
-
postgresql,
+
libpq,
}:
stdenv.mkDerivation rec {
···
libmysqlclient
]
++ lib.optionals postgresSupport [
-
postgresql
+
libpq
];
propagatedBuildInputs = [
+2 -2
pkgs/development/libraries/librdf/redland.nix
···
gmp,
libmysqlclient,
withMysql ? false,
-
postgresql,
+
libpq,
withPostgresql ? false,
sqlite,
withSqlite ? true,
···
]
++ lib.optional withMysql libmysqlclient
++ lib.optional withSqlite sqlite
-
++ lib.optional withPostgresql postgresql
+
++ lib.optional withPostgresql libpq
++ lib.optional withBdb db;
propagatedBuildInputs = [ librdf_rasqal ];
+2 -2
pkgs/development/libraries/mapnik/default.nix
···
sqlite,
zlib,
catch2,
-
postgresql,
+
libpq,
protozero,
sparsehash,
}:
···
sqlite
zlib
libxml2
-
postgresql
+
libpq
protozero
sparsehash
];
+4 -4
pkgs/development/libraries/qt-5/modules/qtbase.nix
···
# optional dependencies
cups ? null,
-
postgresql ? null,
+
libpq ? null,
withGtk3 ? false,
dconf,
gtk3,
···
++ lib.optional developerBuild gdb
++ lib.optional (cups != null) cups
++ lib.optional (mysqlSupport) libmysqlclient
-
++ lib.optional (postgresql != null) postgresql;
+
++ lib.optional (libpq != null) libpq;
nativeBuildInputs =
[
···
# PostgreSQL autodetection fails sporadically because Qt omits the "-lpq" flag
# if dependency paths contain the string "pq", which can occur in the hash.
# To prevent these failures, we need to override PostgreSQL detection.
-
PSQL_LIBS = lib.optionalString (postgresql != null) "-L${postgresql.lib}/lib -lpq";
+
PSQL_LIBS = lib.optionalString (libpq != null) "-L${libpq}/lib -lpq";
}
// lib.optionalAttrs (stdenv.buildPlatform != stdenv.hostPlatform) {
···
"${openssl.dev}/include"
"-system-sqlite"
''-${if mysqlSupport then "plugin" else "no"}-sql-mysql''
-
''-${if postgresql != null then "plugin" else "no"}-sql-psql''
+
''-${if libpq != null then "plugin" else "no"}-sql-psql''
"-system-libpng"
"-make libs"
+2 -4
pkgs/development/libraries/qt-6/modules/qtbase/default.nix
···
# optional dependencies
cups,
libmysqlclient,
-
postgresql,
+
libpq,
withGtk3 ? false,
gtk3,
withLibinput ? false,
···
++ lib.optional withGtk3 gtk3
++ lib.optional withLibinput libinput
++ lib.optional (libmysqlclient != null && !stdenv.hostPlatform.isMinGW) libmysqlclient
-
++ lib.optional (
-
postgresql != null && lib.meta.availableOn stdenv.hostPlatform postgresql
-
) postgresql;
+
++ lib.optional (libpq != null && lib.meta.availableOn stdenv.hostPlatform libpq) libpq;
nativeBuildInputs = [
bison
+2 -2
pkgs/development/libraries/soci/default.nix
···
fetchFromGitHub,
fetchpatch,
sqlite,
-
postgresql,
+
libpq,
boost,
darwin,
lib,
···
buildInputs =
[
sqlite
-
postgresql
+
libpq
boost
]
++ lib.optionals stdenv.hostPlatform.isDarwin [
+2 -2
pkgs/development/libraries/wt/default.nix
···
{ lib, stdenv, fetchFromGitHub, cmake, boost, pkg-config, doxygen, qtbase, libharu
-
, pango, fcgi, firebird, libmysqlclient, postgresql, graphicsmagick, glew, openssl
+
, pango, fcgi, firebird, libmysqlclient, libpq, graphicsmagick, glew, openssl
, pcre, harfbuzz, icu
}:
···
nativeBuildInputs = [ cmake pkg-config ];
buildInputs = [
boost doxygen qtbase libharu
-
pango fcgi firebird libmysqlclient postgresql graphicsmagick glew
+
pango fcgi firebird libmysqlclient libpq graphicsmagick glew
openssl pcre harfbuzz icu
];
+2 -2
pkgs/development/lua-modules/overrides.nix
···
, libmpack
, libmysqlclient
, libpsl
+
, libpq
, libuuid
, libuv
, libxcrypt
···
, openssl
, pcre
, pkg-config
-
, postgresql
, readline
, rustPlatform
, sol2
···
luadbi-postgresql = prev.luadbi-postgresql.overrideAttrs (oa: {
buildInputs = oa.buildInputs ++ [
-
(lib.getDev postgresql)
+
(lib.getDev libpq)
];
});
+2 -3
pkgs/development/ocaml-modules/postgresql/default.nix
···
-
{ lib, fetchFromGitHub, buildDunePackage, dune-configurator, postgresql }:
+
{ lib, fetchFromGitHub, buildDunePackage, dune-configurator, libpq }:
buildDunePackage rec {
pname = "postgresql";
···
sha256 = "1i4pnh2v00i0s7s9pcwz1x6s4xcd77d08gjjkvy0fmda6mqq6ghn";
};
-
nativeBuildInputs = [ postgresql ];
buildInputs = [ dune-configurator ];
-
propagatedBuildInputs = [ postgresql ];
+
propagatedBuildInputs = [ libpq ];
meta = {
description = "Bindings to the PostgreSQL library";
+2 -2
pkgs/development/octave-modules/database/default.nix
···
lib,
fetchurl,
struct,
-
postgresql,
+
libpq,
}:
buildOctavePackage rec {
···
];
propagatedBuildInputs = [
-
postgresql
+
libpq
];
requiredOctavePackages = [
+2 -3
pkgs/development/python-modules/pgsanity/default.nix
···
lib,
fetchPypi,
buildPythonPackage,
-
postgresql,
+
libpq,
unittestCheckHook,
}:
···
nativeCheckInputs = [
unittestCheckHook
-
postgresql
];
unittestFlagsArray = [ "test" ];
-
propagatedBuildInputs = [ postgresql ];
+
propagatedBuildInputs = [ libpq ];
meta = with lib; {
homepage = "https://github.com/markdrago/pgsanity";
+5 -4
pkgs/development/python-modules/psycopg/default.nix
···
substituteAll,
# build
-
postgresql,
+
libpq,
setuptools,
# propagates
···
pproxy,
pytest-randomly,
pytestCheckHook,
+
postgresql,
postgresqlTestHook,
}:
···
patches = [
(substituteAll {
src = ./ctypes.patch;
-
libpq = "${postgresql.lib}/lib/libpq${stdenv.hostPlatform.extensions.sharedLibrary}";
+
libpq = "${libpq}/lib/libpq${stdenv.hostPlatform.extensions.sharedLibrary}";
libc = "${stdenv.cc.libc}/lib/libc.so.6";
})
];
···
nativeBuildInputs = [
cython
# needed to find pg_config with strictDeps
-
postgresql
+
libpq
setuptools
tomli
];
buildInputs = [
-
postgresql
+
libpq
];
# tested in psycopg
+3 -3
pkgs/development/ruby-modules/gem-config/default.nix
···
# (to make gems behave if necessary).
{ lib, fetchurl, fetchpatch, fetchpatch2, writeScript, ruby, libkrb5, libxml2, libxslt, python2, stdenv, which
-
, libiconv, postgresql, nodejs, clang, sqlite, zlib, imagemagick, lasem
+
, libiconv, libpq, nodejs, clang, sqlite, zlib, imagemagick, lasem
, pkg-config , ncurses, xapian, gpgme, util-linux, tzdata, icu, libffi
, cmake, libssh2, openssl, openssl_1_1, libmysqlclient, git, perl, pcre2, gecode_3, curl
, libsodium, snappy, libossp_uuid, lxc, libpcap, xorg, gtk3, lerc, buildRubyGem
···
# an unnecessary reference to the entire postgresql package.
buildFlags = [ "--with-pg-config=ignore" ];
nativeBuildInputs = [ pkg-config ];
-
buildInputs = [ postgresql ];
+
buildInputs = [ libpq ];
};
psych = attrs: {
···
};
sequel_pg = attrs: {
-
buildInputs = [ postgresql ];
+
buildInputs = [ libpq ];
};
snappy = attrs: {
+2 -2
pkgs/games/ldmud/default.nix
···
, mysqlSupport ? false
, libmysqlclient
, postgresSupport ? false
-
, postgresql
+
, libpq
, sqliteSupport ? false
, sqlite
, tlsSupport ? false
···
[ autoreconfHook pkg-config bison ];
buildInputs = [ libgcrypt libxcrypt pcre json_c libxml2 ]
++ lib.optional mccpSupport zlib ++ lib.optional mysqlSupport libmysqlclient
-
++ lib.optional postgresSupport postgresql
+
++ lib.optional postgresSupport libpq
++ lib.optional sqliteSupport sqlite ++ lib.optional tlsSupport openssl
++ lib.optional pythonSupport python310
++ lib.optionals stdenv.hostPlatform.isDarwin [ libiconv ];
+2 -2
pkgs/servers/http/openresty/default.nix
···
lib,
fetchurl,
perl,
-
postgresql,
+
libpq,
nixosTests,
withPostgres ? true,
...
···
nativeBuildInputs = [ perl ];
-
buildInputs = [ postgresql ];
+
buildInputs = [ libpq ];
postPatch = ''
patchShebangs configure bundle/
+2 -2
pkgs/servers/mail/dovecot/default.nix
···
withMySQL ? false,
libmysqlclient,
withPgSQL ? false,
-
postgresql,
+
libpq,
withSQLite ? true,
sqlite,
withLua ? false,
···
inotify-tools
]
++ lib.optional withMySQL libmysqlclient
-
++ lib.optional withPgSQL postgresql
+
++ lib.optional withPgSQL libpq
++ lib.optional withSQLite sqlite
++ lib.optional withLua lua5_3;
+2 -2
pkgs/servers/mail/opensmtpd/extras.nix
···
lua5,
perl,
libmysqlclient,
-
postgresql,
+
libpq,
sqlite,
hiredis,
enableLua ? true,
···
lua5
perl
libmysqlclient
-
postgresql
+
libpq
sqlite
hiredis
];
+2 -2
pkgs/servers/mail/postfix/default.nix
···
withLDAP ? true,
openldap,
withPgSQL ? false,
-
postgresql,
+
libpq,
withMySQL ? false,
libmysqlclient,
withSQLite ? false,
···
libnsl
pcre2
]
-
++ lib.optional withPgSQL postgresql
+
++ lib.optional withPgSQL libpq
++ lib.optional withMySQL libmysqlclient
++ lib.optional withSQLite sqlite
++ lib.optional withLDAP openldap;
+2 -2
pkgs/servers/monitoring/icinga2/default.nix
···
openssl,
patchelf,
mariadb-connector-c,
-
postgresql,
+
libpq,
zlib,
tzdata,
# Databases
···
boost
openssl
systemd
-
] ++ lib.optional withPostgresql postgresql;
+
] ++ lib.optional withPostgresql libpq;
nativeBuildInputs = [
cmake
+2 -2
pkgs/servers/monitoring/zabbix/proxy.nix
···
mysqlSupport ? false,
libmysqlclient,
postgresqlSupport ? false,
-
postgresql,
+
libpq,
}:
# ensure exactly one database type is selected
···
++ optional sqliteSupport sqlite
++ optional sshSupport libssh2
++ optional mysqlSupport libmysqlclient
-
++ optional postgresqlSupport postgresql;
+
++ optional postgresqlSupport libpq;
configureFlags =
[
+2 -2
pkgs/servers/monitoring/zabbix/server.nix
···
mysqlSupport ? false,
libmysqlclient,
postgresqlSupport ? false,
-
postgresql,
+
libpq,
ipmiSupport ? false,
openipmi,
}:
···
++ optional snmpSupport net-snmp
++ optional sshSupport libssh2
++ optional mysqlSupport libmysqlclient
-
++ optional postgresqlSupport postgresql
+
++ optional postgresqlSupport libpq
++ optional ipmiSupport openipmi;
configureFlags =
+2 -2
pkgs/servers/mx-puppet-discord/default.nix
···
{ stdenv, fetchFromGitLab, pkgs, lib, node-pre-gyp, nodejs_18, pkg-config
-
, libjpeg, pixman, cairo, pango, which, postgresql }:
+
, libjpeg, pixman, cairo, pango, which, libpq }:
let
nodejs = nodejs_18;
···
inherit version src;
nativeBuildInputs = [ node-pre-gyp nodejs.pkgs.node-gyp-build pkg-config which ];
-
buildInputs = [ libjpeg pixman cairo pango postgresql ];
+
buildInputs = [ libjpeg pixman cairo pango libpq ];
postRebuild = ''
# Build typescript stuff
+2 -2
pkgs/servers/nominatim/default.nix
···
pandoc,
nlohmann_json,
# Nominatim needs to be built with the same postgres version it will target
-
postgresql,
+
libpq,
python3,
php,
lua,
···
# python3Packages.pylint # We don't want to run pylint because the package could break on pylint bumps which is really annoying.
# python3Packages.pytest # disabled since I can't get it to run tests anyway
# python3Packages.behave # disabled since I can't get it to run tests anyway
-
postgresql
+
libpq
];
postPatch = ''
+2 -2
pkgs/servers/sip/freeswitch/modules.nix
···
, curl
, ffmpeg
, libmysqlclient
-
, postgresql
+
, libpq
, spandsp3
, sofia_sip
, libks
···
databases = {
mariadb = mk "databases/mod_mariadb" [ libmysqlclient ];
-
pgsql = mk "databases/mod_pgsql" [ postgresql ];
+
pgsql = mk "databases/mod_pgsql" [ libpq ];
};
dialplans = {
+3 -1
pkgs/servers/sql/postgresql/default.nix
···
)
) versions;
+
libpq = self.callPackage ./libpq.nix { };
+
in
# variations without and with JIT
-
(mkAttributes false) // (mkAttributes true)
+
(mkAttributes false) // (mkAttributes true) // { inherit libpq; }
+146
pkgs/servers/sql/postgresql/libpq.nix
···
+
{
+
# utils
+
stdenv,
+
fetchurl,
+
lib,
+
+
# runtime dependencies
+
openssl,
+
tzdata,
+
zlib,
+
+
# build dependencies
+
bison,
+
flex,
+
perl,
+
pkg-config,
+
+
# passthru / meta
+
postgresql,
+
+
# GSSAPI
+
gssSupport ? with stdenv.hostPlatform; !isWindows && !isStatic,
+
libkrb5,
+
+
# NLS
+
nlsSupport ? false,
+
gettext,
+
}:
+
+
stdenv.mkDerivation (finalAttrs: {
+
pname = "libpq";
+
version = "17.2";
+
+
src = fetchurl {
+
url = "mirror://postgresql/source/v${finalAttrs.version}/postgresql-${finalAttrs.version}.tar.bz2";
+
hash = "sha256-gu8nwK83UWldf2Ti2WNYMAX7tqDD32PQ5LQiEdcCEWQ=";
+
};
+
+
__structuredAttrs = true;
+
+
hardeningEnable = lib.optionals (!stdenv.cc.isClang) [ "pie" ];
+
+
outputs = [
+
"out"
+
"dev"
+
];
+
outputChecks.out = {
+
disallowedReferences = [ "dev" ];
+
disallowedRequisites = [
+
stdenv.cc
+
] ++ (map lib.getDev (builtins.filter (drv: drv ? "dev") finalAttrs.buildInputs));
+
};
+
+
buildInputs =
+
[
+
zlib
+
openssl
+
]
+
++ lib.optionals gssSupport [ libkrb5 ]
+
++ lib.optionals nlsSupport [ gettext ];
+
+
nativeBuildInputs = [
+
bison
+
flex
+
perl
+
pkg-config
+
];
+
+
# causes random build failures
+
enableParallelBuilding = false;
+
+
separateDebugInfo = true;
+
+
buildFlags = [
+
"submake-libpgport"
+
"submake-libpq"
+
];
+
+
# libpgcommon.a and libpgport.a contain all paths normally returned by pg_config and are
+
# linked into all shared libraries. However, almost no binaries actually use those paths.
+
# The following flags will remove unused sections from all shared libraries - including
+
# those paths. This avoids a lot of circular dependency problems with different outputs,
+
# and allows splitting them cleanly.
+
env.CFLAGS =
+
"-fdata-sections -ffunction-sections"
+
+ (if stdenv.cc.isClang then " -flto" else " -fmerge-constants -Wl,--gc-sections");
+
+
configureFlags =
+
[
+
"--enable-debug"
+
"--sysconfdir=/etc"
+
"--with-openssl"
+
"--with-system-tzdata=${tzdata}/share/zoneinfo"
+
"--without-icu"
+
"--without-perl"
+
"--without-readline"
+
]
+
++ lib.optionals gssSupport [ "--with-gssapi" ]
+
++ lib.optionals nlsSupport [ "--enable-nls" ];
+
+
patches = lib.optionals stdenv.hostPlatform.isLinux [
+
./patches/socketdir-in-run-13+.patch
+
];
+
+
installPhase = ''
+
runHook preInstall
+
+
make -C src/bin/pg_config install
+
make -C src/common install
+
make -C src/include install
+
make -C src/interfaces/libpq install
+
make -C src/port install
+
+
moveToOutput bin/pg_config "$dev"
+
moveToOutput "lib/*.a" "$dev"
+
+
rm -rfv $out/share
+
rm -rfv $dev/lib/*_shlib.a
+
+
runHook postInstall
+
'';
+
+
# PostgreSQL always builds both shared and static libs, so we delete those we don't want.
+
postInstall =
+
if stdenv.hostPlatform.isStatic then
+
''
+
rm -rfv $out/lib/*.so*
+
touch $out/empty
+
''
+
else
+
"rm -rfv $dev/lib/*.a";
+
+
doCheck = false;
+
+
meta = {
+
inherit (postgresql.meta)
+
homepage
+
license
+
maintainers
+
platforms
+
;
+
description = "C application programmer's interface to PostgreSQL";
+
changelog = "https://www.postgresql.org/docs/release/${finalAttrs.version}/";
+
pkgConfigModules = [ "libpq" ];
+
};
+
})
+2 -2
pkgs/servers/web-apps/lemmy/server.nix
···
rustPlatform,
fetchFromGitHub,
openssl,
-
postgresql,
+
libpq,
libiconv,
Security,
SystemConfiguration,
···
cargoHash = pinData.serverCargoHash;
buildInputs =
-
[ postgresql ]
+
[ libpq ]
++ lib.optionals stdenv.hostPlatform.isDarwin [
libiconv
Security
+3 -3
pkgs/tools/backup/bacula/default.nix
···
stdenv,
fetchurl,
sqlite,
-
postgresql,
+
libpq,
zlib,
acl,
ncurses,
···
buildInputs =
[
-
postgresql
+
libpq
sqlite
zlib
ncurses
···
configureFlags =
[
"--with-sqlite3=${sqlite.dev}"
-
"--with-postgresql=${lib.getDev postgresql}"
+
"--with-postgresql=${lib.getDev libpq}"
"--with-logdir=/var/log/bacula"
"--with-working-dir=/var/lib/bacula"
"--mandir=\${out}/share/man"
+3 -3
pkgs/tools/package-management/disnix/dysnomia/default.nix
···
systemd ? null,
ejabberd ? null,
mariadb ? null,
-
postgresql ? null,
+
libpq ? null,
subversion ? null,
mongodb ? null,
mongodb-tools ? null,
···
}:
assert enableMySQLDatabase -> mariadb != null;
-
assert enablePostgreSQLDatabase -> postgresql != null;
+
assert enablePostgreSQLDatabase -> libpq != null;
assert enableSubversionRepository -> subversion != null;
assert enableEjabberdDump -> ejabberd != null;
assert enableMongoDatabase -> (mongodb != null && mongodb-tools != null);
···
++ lib.optional stdenv.hostPlatform.isLinux systemd
++ lib.optional enableEjabberdDump ejabberd
++ lib.optional enableMySQLDatabase mariadb.out
-
++ lib.optional enablePostgreSQLDatabase postgresql
+
++ lib.optional enablePostgreSQLDatabase libpq
++ lib.optional enableSubversionRepository subversion
++ lib.optionals enableMongoDatabase [
mongodb
+2 -2
pkgs/tools/security/vaultwarden/default.nix
···
SystemConfiguration,
dbBackend ? "sqlite",
libmysqlclient,
-
postgresql,
+
libpq,
}:
let
···
SystemConfiguration
]
++ lib.optional (dbBackend == "mysql") libmysqlclient
-
++ lib.optional (dbBackend == "postgresql") postgresql;
+
++ lib.optional (dbBackend == "postgresql") libpq;
buildFeatures = dbBackend;
+2 -2
pkgs/tools/system/collectd/plugins.nix
···
gdk-pixbuf,
liboping,
libpcap,
+
libpq,
libsigrok,
libvirt,
libxml2,
···
openldap,
openipmi,
perl,
-
postgresql,
protobufc,
python3,
rabbitmq-c,
···
perl.buildInputs = [ perl ];
pinba.buildInputs = [ protobufc ];
ping.buildInputs = [ liboping ];
-
postgresql.buildInputs = [ postgresql ];
+
postgresql.buildInputs = [ libpq ];
python.buildInputs = [ python3 ];
redis.buildInputs = [ hiredis ];
rrdcached.buildInputs = [
+2 -2
pkgs/tools/system/rsyslog/default.nix
···
withMysql ? true,
libmysqlclient,
withPostgres ? true,
-
postgresql,
+
libpq,
withDbi ? true,
libdbi,
withNetSnmp ? true,
···
]
++ lib.optional withKrb5 libkrb5
++ lib.optional withJemalloc jemalloc
-
++ lib.optional withPostgres postgresql
+
++ lib.optional withPostgres libpq
++ lib.optional withDbi libdbi
++ lib.optional withNetSnmp net-snmp
++ lib.optional withUuid libuuid
+2 -2
pkgs/tools/text/gawk/gawkextlib.nix
···
glibcLocales,
mpfr,
more,
-
postgresql,
+
libpq,
hiredis,
expat,
tre,
···
pgsql = buildExtension {
inherit gawkextlib;
name = "pgsql";
-
extraBuildInputs = [ postgresql ];
+
extraBuildInputs = [ libpq ];
};
redis = buildExtension {
inherit gawkextlib;
+3 -3
pkgs/top-level/all-packages.nix
···
systemd = pkgs.systemd;
};
-
nominatim = callPackage ../servers/nominatim {
-
postgresql = postgresql_14;
-
};
+
nominatim = callPackage ../servers/nominatim { };
ocs-url = libsForQt5.callPackage ../tools/misc/ocs-url { };
···
postgresqlVersions = import ../servers/sql/postgresql pkgs;
inherit (postgresqlVersions)
+
libpq
+
postgresql_13
postgresql_14
postgresql_15
+1 -1
pkgs/top-level/ocaml-packages.nix
···
posix-types = callPackage ../development/ocaml-modules/posix/types.nix { };
postgresql = callPackage ../development/ocaml-modules/postgresql {
-
inherit (pkgs) postgresql;
+
inherit (pkgs) libpq;
};
pp = callPackage ../development/ocaml-modules/pp { };
+8 -5
pkgs/top-level/php-packages.nix
···
libffi,
libiconv,
libkrb5,
+
libpq,
libsodium,
libxml2,
libxslt,
···
overrideSDK,
pam,
pcre2,
-
postgresql,
bison,
re2c,
readline,
···
configureFlags = [ "--with-pdo-oci=instantclient,${pkgs.oracle-instantclient.lib}/lib" ];
internalDeps = [ php.extensions.pdo ];
-
postPatch = ''
sed -i -e 's|OCISDKMANINC=`.*$|OCISDKMANINC="${pkgs.oracle-instantclient.dev}/include"|' config.m4
'';
···
{
name = "pdo_pgsql";
internalDeps = [ php.extensions.pdo ];
-
configureFlags = [ "--with-pdo-pgsql=${lib.getDev postgresql}" ];
+
buildInputs = [ libpq ];
+
configureFlags = [ "--with-pdo-pgsql=${lib.getDev libpq}" ];
doCheck = false;
}
{
···
}
{
name = "pgsql";
-
buildInputs = [ pcre2 ];
-
configureFlags = [ "--with-pgsql=${lib.getDev postgresql}" ];
+
buildInputs = [
+
pcre2
+
libpq
+
];
+
configureFlags = [ "--with-pgsql=${lib.getDev libpq}" ];
doCheck = false;
}
{