Commit Graph

4033 Commits

Author SHA1 Message Date
Wolfgang Walther
08883bbf9c postgresqlPackages.plr: add withPackages helper
This allows passing packages to PL/R without rebuilding anything.
2025-03-21 18:19:43 +01:00
Wolfgang Walther
527713c1db postgresql: provide pltcl extension as package
This allows us to always build the extension, but still have the user
explicitly enable it without causing rebuilds.
2025-03-21 18:19:42 +01:00
Wolfgang Walther
310ec25e98 postgresql: provide plperl extension as package
This allows us to always build the extension, but still have the user
explicitly enable it without causing rebuilds.
2025-03-21 18:19:41 +01:00
Wolfgang Walther
fbdb09b2cc postgresql: provide plpython3 extension as package
This allows us to always build the extension, but still have the user
explicitly enable it without causing rebuilds.
2025-03-21 18:15:28 +01:00
Wolfgang Walther
2888972b4f postgresql: fix tclSupport with strictDeps
Can't find tcl anymore ever since we enabled strictDeps. Need to do the
same as for perl and python.
2025-03-21 18:09:36 +01:00
Wolfgang Walther
0ccd469787 postgresql: fix cross-compilation with perlSupport
Perl is available in nativeBuildInputs, but the perl used at runtime,
must be a different one. Thus, we need to explicitly tell configure
about it, similar to how we did with python.
2025-03-21 18:09:35 +01:00
Wolfgang Walther
33782bdff6 postgresql: remove left-over buildInput python
We don't need to pass it as build input anymore, because we pass it via
PYTHON environment variable already.
2025-03-21 18:09:35 +01:00
Wolfgang Walther
82e2064212 postgresql: switch to makeBinaryWrapper
This could be slightly faster and since "postgres" is called for every
connection, it could theoretically make a difference with high
throughput.
2025-03-21 18:09:34 +01:00
Wolfgang Walther
1173e312e3 postgresql: disable unconditional plperl in versions before 17
We accidentally enabled building plperl in versions before 17
unconditionally, which was not intended.

Happened in be8612e15a.
2025-03-21 18:09:33 +01:00
Wolfgang Walther
5dff1a074f postgresql: use lib.getExe 2025-03-21 18:09:28 +01:00
Wolfgang Walther
39337618bb postgresql: use meta.availableOn for linux-pam 2025-03-21 18:09:23 +01:00
Wolfgang Walther
f9765933f4 postgresql: move CFLAGS comment
This only applies to CFLAGS, not all of env.
2025-03-21 18:09:21 +01:00
Wolfgang Walther
88dfade94b postgresql: replace pg_config with custom script
By replacing upstream's pg_config binary with a shell script, we:
- gain the ability to run pg_config easily when cross-compiling,
- can remove the fake pg_config in the default output,
- can remove the pg_config wrapper script dealing with special cases.

Some 20 years ago, pg_config *was* a shell script upstream, too. It was
changed to a binary, when it was made "relocatable", so it would return
paths depending on the location of the "postgres" binary. However, this
is exactly the thing that just hurts us in nixpkgs - we don't want those
paths to change, we want them to always point at the right outputs. By
writing the script ourselves, this becomes a lot less painful.

This approach means more lines of codes, but all of them are dead simple
and we have a lot less complexity overall.

Additionally, pg_config is now made a separate derivation, only exposed
as "postgresql.pg_config". This has the nice side-effect, that all users
of postgresql and libpq in nixpkgs must be very *explicit* about their
dependency on pg_config. This gives a lot more visibility into the state
of affairs regarding pkg-config support for libpq, which ultimately is
the much better solution.
2025-03-21 18:05:38 +01:00
R. Ryantm
eb70c004ba postgresqlPackages.pg_ivm: 1.9 -> 1.10 2025-03-21 14:21:57 +00:00
R. Ryantm
ae7f1a7297 postgresqlPackages.citus: 13.0.2 -> 13.0.3 2025-03-21 12:12:31 +00:00
R. Ryantm
44e782ed5a postgresqlPackages.pg_tle: 1.4.0 -> 1.5.0 2025-03-20 15:28:13 +00:00
nixpkgs-ci[bot]
47fbdfd4fc Merge staging-next into staging 2025-03-20 00:16:05 +00:00
Nikolay Korotkiy
7106b62394 postgresqlJitPackages.timescaledb: fix build 2025-03-20 00:43:45 +04:00
Nikolay Korotkiy
293866706b postgresqlPackages.timescaledb: 2.18.2 -> 2.19.0 2025-03-19 23:50:47 +04:00
R. Ryantm
1453184e8f mssql_jdbc: 12.8.1 -> 12.10.0 2025-03-19 00:05:14 +00:00
nixpkgs-ci[bot]
e8240407b0 Merge staging-next into staging 2025-03-18 18:05:35 +00:00
Wolfgang Walther
65cee89d7e postgresqlPackages.citus: fix build on darwin
The build on darwin was broken for v16 and v17 only. This was fixed
upstream a while ago, but somehow the fix has not been released, yet.
2025-03-18 18:17:30 +01:00
Wolfgang Walther
259b4ff913 postgresql: split postgresqlTestExtension into separate file 2025-03-18 18:17:25 +01:00
Wolfgang Walther
72b8186ff7 postgresqlPackages: rename buildPostgresqlExtension to postgresqlBuildExtension
This is for consistency with postgresqlTestExtension and
postgresqlTestHook. Everything that is passed via postgresql's
generic.nix "packages scope" now is prefixed with "postgresql".
2025-03-18 18:17:24 +01:00
Wolfgang Walther
6e0738b8c2 postgresqlPackages: load automatically from ext/ folder
No need to manually put them in the default.nix file anymore.
2025-03-18 18:17:24 +01:00
Wolfgang Walther
a01c101200 postgresqlPackages.pg_tle: sort arguments 2025-03-18 18:17:23 +01:00
Wolfgang Walther
53fc911cbd postgresqlPackages.pgx_ulid: sort arguments 2025-03-18 18:17:22 +01:00
Wolfgang Walther
e0aaaa79ea postgresqlPackages.pgddl: sort arguments 2025-03-18 18:17:21 +01:00
Wolfgang Walther
d14917c317 postgresqlPackages.wal2json: modernize 2025-03-18 18:17:21 +01:00
Wolfgang Walther
5018714b31 postgresqlPackages.tsja: modernize 2025-03-18 18:17:20 +01:00
Wolfgang Walther
43ace7386f postgresqlPackages.timescaledb_toolkit: modernize 2025-03-18 18:17:19 +01:00
Wolfgang Walther
07fff4ea84 postgresqlPackages.timescaledb: modernize 2025-03-18 18:17:18 +01:00
Wolfgang Walther
a117e894b3 postgresqlPackages.temporal_tables: modernize 2025-03-18 18:17:17 +01:00
Wolfgang Walther
83ed279f0e postgresqlPackages.tds_fdw: modernize 2025-03-18 18:17:17 +01:00
Wolfgang Walther
1acb518917 postgresqlPackages.systems_stats: modernize 2025-03-18 18:17:16 +01:00
Wolfgang Walther
7cf6a75432 postgresqlPackages.sqlite_fdw: modernize 2025-03-18 18:17:15 +01:00
Wolfgang Walther
87dcf8ebd0 postgresqlPackages.smlar: modernize 2025-03-18 18:17:14 +01:00
Wolfgang Walther
ab69634d94 postgresqlPackages.rum: modernize 2025-03-18 18:17:14 +01:00
Wolfgang Walther
f95649327f postgresqlPackages.repmgr: modernize 2025-03-18 18:17:13 +01:00
Wolfgang Walther
8f6d6a274c postgresqlPackages.postgis: modernize 2025-03-18 18:17:12 +01:00
Wolfgang Walther
e3960931e4 postgresqlPackages.plr: modernize 2025-03-18 18:17:07 +01:00
Wolfgang Walther
d3a7181b5e postgresqlPackages.plpgsql_check: modernize 2025-03-18 18:17:07 +01:00
Wolfgang Walther
9e3ad80ed5 postgresqlPackages.pgvector: modernize 2025-03-18 18:17:06 +01:00
Wolfgang Walther
b2daf5353c postgresqlPackages.pgtap: modernize 2025-03-18 18:17:05 +01:00
Wolfgang Walther
c22f751e95 postgresqlPackages.pgsql-http: modernize 2025-03-18 18:17:04 +01:00
Wolfgang Walther
671cda525b postgresqlPackages.pgsodium: modernize 2025-03-18 18:17:04 +01:00
Wolfgang Walther
e05060a735 postgresqlPackages.pgrouting: modernize 2025-03-18 18:17:03 +01:00
Wolfgang Walther
f29a6d41a6 postgresqlPackages.pgroonga: modernize 2025-03-18 18:17:02 +01:00
Wolfgang Walther
b1a9540b39 postgresqlPackages.pgmq: modernize 2025-03-18 18:17:01 +01:00
Wolfgang Walther
6873ba7f2d postgresqlPackages.pgjwt: modernize 2025-03-18 18:17:00 +01:00