Skip to content
Merged
Show file tree
Hide file tree
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
1 change: 1 addition & 0 deletions ci/OWNERS
Original file line number Diff line number Diff line change
Expand Up @@ -246,6 +246,7 @@ pkgs/development/python-modules/buildcatrust/ @ajs124 @lukegb @mweinelt
/maintainers/scripts/kde @K900 @NickCao @SuperSandro2000 @ttuegel

# PostgreSQL and related stuff
/pkgs/by-name/ps/psqlodbc @NixOS/postgres
/pkgs/servers/sql/postgresql @NixOS/postgres
/pkgs/development/tools/rust/cargo-pgrx @NixOS/postgres
/nixos/modules/services/databases/postgresql.md @NixOS/postgres
Expand Down
4 changes: 2 additions & 2 deletions pkgs/applications/blockchains/lighthouse/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
, nix-update-script
, openssl
, pkg-config
, postgresql
, libpq
, protobuf
, rustPlatform
, rust-jemalloc-sys
Expand Down Expand Up @@ -130,7 +130,7 @@ rustPlatform.buildRustPackage rec {
];

nativeCheckInputs = [
postgresql
libpq
];

passthru = {
Expand Down
6 changes: 3 additions & 3 deletions pkgs/applications/gis/grass/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
, netcdf
, pdal
, pkg-config
, postgresql
, libpq
, proj
, python3Packages
, readline
Expand Down Expand Up @@ -75,7 +75,7 @@ stdenv.mkDerivation (finalAttrs: {
libxml2
netcdf
pdal
postgresql
libpq
proj
readline
sqlite
Expand All @@ -102,7 +102,7 @@ stdenv.mkDerivation (finalAttrs: {
"--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"
Expand Down
4 changes: 2 additions & 2 deletions pkgs/applications/gis/qgis/unwrapped-ltr.nix
Original file line number Diff line number Diff line change
Expand Up @@ -21,14 +21,14 @@
grass,
gsl,
hdf5,
libpq,
libspatialindex,
libspatialite,
libzip,
netcdf,
ninja,
openssl,
pdal,
postgresql,
proj,
protobuf,
python3,
Expand Down Expand Up @@ -116,13 +116,13 @@ mkDerivation rec {
geos
gsl
hdf5
libpq
libspatialindex
libspatialite
libzip
netcdf
openssl
pdal
postgresql
proj
protobuf
qca-qt5
Expand Down
4 changes: 2 additions & 2 deletions pkgs/applications/gis/qgis/unwrapped.nix
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
, ninja
, openssl
, pdal
, postgresql
, libpq
, proj
, protobuf
, python3
Expand Down Expand Up @@ -119,7 +119,7 @@ in mkDerivation rec {
netcdf
openssl
pdal
postgresql
libpq
proj
protobuf
qca-qt5
Expand Down
9 changes: 4 additions & 5 deletions pkgs/applications/misc/pgmodeler/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
qmake,
qtwayland,
qtsvg,
postgresql,
libpq,
cups,
libxml2,
}:
Expand Down Expand Up @@ -37,17 +37,16 @@ stdenv.mkDerivation rec {
"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 ]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
lib,
stdenv,
fetchurl,
postgresql,
libpq,
autoPatchelfHook,
writeScript,
}:
Expand All @@ -25,7 +25,7 @@ stdenv.mkDerivation rec {

buildInputs = [
stdenv.cc.cc
postgresql.lib
libpq
];

nativeBuildInputs = [ autoPatchelfHook ];
Expand Down
4 changes: 2 additions & 2 deletions pkgs/applications/networking/p2p/gnunet/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
, makeWrapper, ncurses, pkg-config, libxml2, sqlite, zlib
, libpulseaudio, libopus, libogg, jansson, libsodium

, postgresqlSupport ? true, postgresql }:
, postgresqlSupport ? true, libpq }:

stdenv.mkDerivation rec {
pname = "gnunet";
Expand All @@ -21,7 +21,7 @@ stdenv.mkDerivation rec {
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
Expand Down
4 changes: 2 additions & 2 deletions pkgs/applications/office/kexi/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,8 @@
kreport,
lcms2,
libmysqlclient,
libpq,
marble,
postgresql,
}:

mkDerivation rec {
Expand Down Expand Up @@ -74,8 +74,8 @@ mkDerivation rec {
kreport
lcms2
libmysqlclient
libpq
marble
postgresql
];

propagatedUserEnvPkgs = [ kproperty ];
Expand Down
4 changes: 2 additions & 2 deletions pkgs/applications/office/ledger-web/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
bundlerApp,
bundlerUpdateScript,
withPostgresql ? true,
postgresql,
libpq,
withSqlite ? false,
sqlite,
}:
Expand All @@ -13,7 +13,7 @@ bundlerApp {
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";

Expand Down
4 changes: 2 additions & 2 deletions pkgs/applications/office/libreoffice/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@
, kwindowsystem ? null
, variant ? "fresh"
, symlinkJoin
, postgresql
, libpq
, makeFontsConf
, amiri
, caladea
Expand Down Expand Up @@ -395,7 +395,7 @@ in stdenv.mkDerivation (finalAttrs: {
pam
perl
poppler
postgresql
libpq
python311
sane-backends
unixODBC
Expand Down
4 changes: 2 additions & 2 deletions pkgs/build-support/rust/default-crate-overrides.nix
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
, openssl
, pango
, pkg-config
, postgresql
, libpq
, protobuf
, python3
, rdkafka
Expand Down Expand Up @@ -259,7 +259,7 @@ in

pq-sys = attr: {
nativeBuildInputs = [ pkg-config ];
buildInputs = [ postgresql ];
buildInputs = [ libpq ];
};

prost-build = attr: {
Expand Down
4 changes: 2 additions & 2 deletions pkgs/by-name/al/algol68g/package.nix
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,10 @@
curl,
gmp,
gsl,
libpq,
mpfr,
ncurses,
plotutils,
postgresql,
pkg-config,
withPDFDoc ? true,
}:
Expand Down Expand Up @@ -38,7 +38,7 @@ stdenv.mkDerivation (finalAttrs: {
gmp
gsl
plotutils
postgresql
libpq
];

strictDeps = true;
Expand Down
4 changes: 2 additions & 2 deletions pkgs/by-name/cp/cppdb/package.nix
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
cmake,
sqlite,
libmysqlclient,
postgresql,
libpq,
unixODBC,
}:

Expand All @@ -22,7 +22,7 @@ stdenv.mkDerivation rec {
buildInputs = [
sqlite
libmysqlclient
postgresql
libpq
unixODBC
];

Expand Down
4 changes: 2 additions & 2 deletions pkgs/by-name/cy/cyrus-imapd/package.nix
Original file line number Diff line number Diff line change
Expand Up @@ -27,14 +27,14 @@
libchardet,
libical,
libmysqlclient,
libpq,
libsrs2,
libuuid,
libxml2,
nghttp2,
openssl,
pcre2,
perl,
postgresql,
rsync,
shapelib,
sqlite,
Expand Down Expand Up @@ -115,7 +115,7 @@ stdenv.mkDerivation (finalAttrs: {
xapian
]
++ lib.optionals withMySQL [ libmysqlclient ]
++ lib.optionals withPgSQL [ postgresql ]
++ lib.optionals withPgSQL [ libpq ]
++ lib.optionals withSQLite [ sqlite ];

enableParallelBuilding = true;
Expand Down
4 changes: 2 additions & 2 deletions pkgs/by-name/di/diesel-cli/package.nix
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,10 @@
installShellFiles,
libiconv,
libmysqlclient,
libpq,
nix-update-script,
openssl,
pkg-config,
postgresql,
rustPlatform,
sqlite,
testers,
Expand Down Expand Up @@ -45,7 +45,7 @@ rustPlatform.buildRustPackage rec {
buildInputs =
[ openssl ]
++ lib.optional sqliteSupport sqlite
++ lib.optional postgresqlSupport postgresql
++ lib.optional postgresqlSupport libpq
++ lib.optionals mysqlSupport [
libmysqlclient
zlib
Expand Down
4 changes: 2 additions & 2 deletions pkgs/by-name/dr/drogon/package.nix
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
sqliteSupport ? true,
sqlite,
postgresSupport ? false,
postgresql,
libpq,
redisSupport ? false,
hiredis,
mysqlSupport ? false,
Expand Down Expand Up @@ -51,7 +51,7 @@ stdenv.mkDerivation (finalAttrs: {
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 [
Expand Down
6 changes: 3 additions & 3 deletions pkgs/by-name/ds/dspam/package.nix
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
zlib,
mariadb-connector-c,
withPgSQL ? false,
postgresql,
libpq,
withSQLite ? false,
sqlite,
withDB ? false,
Expand Down Expand Up @@ -56,7 +56,7 @@ stdenv.mkDerivation rec {
zlib
mariadb-connector-c.out
]
++ lib.optional withPgSQL postgresql
++ lib.optional withPgSQL libpq
++ lib.optional withSQLite sqlite
++ lib.optional withDB db;
nativeBuildInputs = [ makeWrapper ];
Expand Down Expand Up @@ -88,7 +88,7 @@ stdenv.mkDerivation rec {
"--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:
Expand Down
Loading