Commit Graph

2709 Commits

Author SHA1 Message Date
Maximilian Bosch
fc16319c06
Merge: postgresqlPackages: refactor extension checks with helper (#343486) 2024-09-25 19:06:11 +02:00
Artturin
f0e657f3b1 Merge branch 'master' into staging-next 2024-09-25 06:05:01 +03:00
Nick Cao
490d9aab87
rqlite: 8.30.0 -> 8.30.3 (#342968) 2024-09-24 18:33:27 -04:00
Artturin
e0464e4788 treewide: replace stdenv.is with stdenv.hostPlatform.is
In preparation for the deprecation of `stdenv.isX`.

These shorthands are not conducive to cross-compilation because they
hide the platforms.

Darwin might get cross-compilation for which the continued usage of `stdenv.isDarwin` will get in the way

One example of why this is bad and especially affects compiler packages
https://www.github.com/NixOS/nixpkgs/pull/343059

There are too many files to go through manually but a treewide should
get users thinking when they see a `hostPlatform.isX` in a place where it
doesn't make sense.

```
fd --type f "\.nix" | xargs sd --fixed-strings "stdenv.is" "stdenv.hostPlatform.is"
fd --type f "\.nix" | xargs sd --fixed-strings "stdenv'.is" "stdenv'.hostPlatform.is"
fd --type f "\.nix" | xargs sd --fixed-strings "clangStdenv.is" "clangStdenv.hostPlatform.is"
fd --type f "\.nix" | xargs sd --fixed-strings "gccStdenv.is" "gccStdenv.hostPlatform.is"
fd --type f "\.nix" | xargs sd --fixed-strings "stdenvNoCC.is" "stdenvNoCC.hostPlatform.is"
fd --type f "\.nix" | xargs sd --fixed-strings "inherit (stdenv) is" "inherit (stdenv.hostPlatform) is"
fd --type f "\.nix" | xargs sd --fixed-strings "buildStdenv.is" "buildStdenv.hostPlatform.is"
fd --type f "\.nix" | xargs sd --fixed-strings "effectiveStdenv.is" "effectiveStdenv.hostPlatform.is"
fd --type f "\.nix" | xargs sd --fixed-strings "originalStdenv.is" "originalStdenv.hostPlatform.is"
```
2024-09-25 00:04:37 +03:00
github-actions[bot]
6ef8ec38ed
Merge staging-next into staging 2024-09-24 12:05:42 +00:00
github-actions[bot]
bcd5388d39
Merge master into staging-next 2024-09-24 12:05:12 +00:00
Yt
2232cae406
postgresqlPackages.pgvecto-rs: 0.2.1 -> 0.3.0 (#321617) 2024-09-24 05:56:28 -04:00
github-actions[bot]
20a908a749
Merge staging-next into staging 2024-09-23 18:05:00 +00:00
github-actions[bot]
9a6f63ebed
Merge master into staging-next 2024-09-23 18:04:34 +00:00
Simon Hauser
32cc042368
mariadb: 10.5.26, 10.6.19, 10.11.9, 11.4.3 (#334878)
* mariadb: 10.5.26, 10.6.19, 10.11.9, 11.4.3

* nixos/tests/automysqlbackup: nixfmt

* nixos/automysqlbackup: fix tests

* nixos/tests/mariadb-galera: nixfmt

* nixos/tests/mariadb-galera: fix test failing with new default IPv6 configuration
2024-09-23 20:00:19 +02:00
Wolfgang Walther
37ac1256c4
postgresqlPackages.pgjwt: add simple create extension check 2024-09-21 14:16:13 +02:00
Wolfgang Walther
2b9fa464cf
postgresqlPackages: refactor extension checks
The withPackages scope now provides a "postgresqlTestExtension" helper
which removes all the boilerplate for those kind of tests.

This was Mario Rodas' idea in #299756.
2024-09-21 14:16:12 +02:00
Wolfgang Walther
b6567e0a54
postgresqlPackages.lantern.tests.extension: fix test
The name of the access method was changed upstream a while ago.
2024-09-21 14:16:12 +02:00
github-actions[bot]
b84aacf2e6
Merge staging-next into staging 2024-09-21 12:05:41 +00:00
github-actions[bot]
d3ae261fc3
Merge master into staging-next 2024-09-21 12:05:16 +00:00
Maximilian Bosch
9163a9f3b8
Merge: postgresql: improve fake pg_config in default output (#341421) 2024-09-21 14:04:45 +02:00
Maximilian Bosch
789562caae
Merge: nixos/tests: add postgresql wal2json test (#315095) 2024-09-21 13:27:22 +02:00
Maximilian Bosch
2795949808
Merge: postgresql_jit.pkgs.postgis: fix build on darwin (#342369) 2024-09-21 11:53:12 +02:00
Ivan Mincik
6ea0c7e924
postgresqlPackages.postgis: 3.4.2 -> 3.4.3 (#343371) 2024-09-21 06:54:30 +00:00
Augustin Trancart
dc750b8237 postgresqlPackages.postgis: 3.4.2 -> 3.4.3 2024-09-20 23:58:45 +02:00
github-actions[bot]
ed37db52bd
Merge staging-next into staging 2024-09-20 06:05:57 +00:00
K900
d8a54461fc Merge remote-tracking branch 'origin/staging-next' into staging 2024-09-20 07:27:56 +03:00
Adam C. Stephens
8c681805d7
patroni: 4.0.1 -> 4.0.2 (#343064) 2024-09-19 20:14:27 -04:00
Adam Stephens
16db97d6a3
patroni: 4.0.1 -> 4.0.2
https://github.com/patroni/patroni/blob/v4.0.2/docs/releases.rst#version-402
2024-09-19 16:52:57 -04:00
Wolfgang Walther
0c47767641
postgresql: improve fake pg_config in default output
This fixes some build systems which look up the location of pg_config
via the location of the postgres binary itself, e.g. timescaledb,
instead of calling pg_config which is on PATH.

Since the -dev output is correctly placed before the default output of
postgresql in PATH, we can rely on that and call "pg_config" from the
default output's fake script. Only do that, when the one on PATH is
actually a different file, though, to prevent infinite loops.

Resolves #341408
2024-09-19 18:58:20 +02:00
Wolfgang Walther
cd85a62bc2
postgresql_jit.pkgs.postgis: fix build on darwin
We introduced LTO in #294504. At that time, we still needed to use LLVM
/ lld to make this work on darwin. For this to work for extensions, they
would need to set CFLAGS=-fuse-ld=lld, too. However, since #307880
landed, we don't need to do this anymore in the first place, LTO just
works out of the box on darwin.

Resolves #342362
2024-09-19 14:50:23 +02:00
R. Ryantm
bf8188532b rqlite: 8.30.0 -> 8.30.3 2024-09-19 06:04:10 +00:00
Peder Bergebakken Sundt
8c8c27bb19 treewide: remove unused inputs 2024-09-18 01:00:07 +02:00
Wolfgang Walther
eb709dd183
timescaledb: use replace-fail instead of replace for substituteInPlace
To avoid the deprecation warning.
2024-09-16 21:43:36 +02:00
Wolfgang Walther
52bb840eaf
postgresql: fix regress tests after tzdata update
This was discussed upstream here:
https://postgr.es/m/0a997455-5aba-4cf2-a354-d26d8bcbfae6%40technowledgy.de

This will be in the next minor releases, until then apply the patch.
2024-09-15 17:10:21 +02:00
Euan Kemp
554ec1c0f0 nixos/tests: add postgresql wal2json test
This test should ensure wal2json functions.
I'm planning to upgrade wal2json, so it seems nice to have a test here.

It passes on my machine.
2024-09-14 05:17:49 +00:00
github-actions[bot]
6811659137
Merge master into staging-next 2024-09-10 00:13:21 +00:00
Weijia Wang
9726017d4f
mssql_jdbc: 12.8.0 -> 12.8.1 (#336684) 2024-09-10 00:04:16 +02:00
R. Ryantm
2231450820 rqlite: 8.28.0 -> 8.30.0 2024-09-08 01:40:09 +00:00
github-actions[bot]
b6b2ac4f61
Merge master into staging-next 2024-09-07 00:12:59 +00:00
R. Ryantm
a2174f106b dolt: 1.42.17 -> 1.42.18 2024-09-06 09:47:19 +00:00
github-actions[bot]
769b11176d
Merge master into staging-next 2024-09-05 18:03:49 +00:00
Peder Bergebakken Sundt
27711621d5
pgcat: 1.1.1 -> 1.2.0 (#338411) 2024-09-05 10:45:07 -04:00
R. Ryantm
59c844b417 patroni: 4.0.0 -> 4.0.1 2024-09-05 11:44:20 +00:00
K900
23b4832da0 Merge remote-tracking branch 'origin/master' into staging-next 2024-09-04 08:53:48 +03:00
Nick Cao
6dfc2e811a
dolt: 1.42.14 -> 1.42.17 (#338463) 2024-09-03 15:22:35 -04:00
github-actions[bot]
d834278999
Merge master into staging-next 2024-09-02 00:13:57 +00:00
Cathal Mullan
48f8b02528
pgcat: 1.1.1 -> 1.2.0 2024-09-01 12:35:51 +01:00
R. Ryantm
5115bc51cf dolt: 1.42.14 -> 1.42.17 2024-08-30 19:59:06 +00:00
R. Ryantm
a5c554a922 patroni: 3.3.2 -> 4.0.0 2024-08-30 05:51:12 +00:00
Maximilian Bosch
f191ad8240
postgresql: use systemdLibs (#337441) 2024-08-28 23:28:37 +02:00
github-actions[bot]
db8f276ee7
Merge staging-next into staging 2024-08-28 18:04:45 +00:00
Sandro Jäckel
b711581edf
cockroachdb: rename from cockroachdb-bin, set meta.sourceProvenance
There is no longer a from source build package, so we can reduce the
attr.
2024-08-28 14:10:24 +02:00
github-actions[bot]
32f893fe9e
Merge staging-next into staging 2024-08-27 00:13:33 +00:00
Rebecca Turner
6602decb96
postgis: Do not hardcode test suite path (#336889)
postgis: Fix test suite

Fixes this failure:

```
Creating database 'postgis_reg-3.4'.
sh: line 1: /tmp/pgis_reg/regress_log: Permission denied
2024-08-23 19:26:18.810 UTC [3295760] FATAL:  database "postgis_reg-3.4" does not exist
psql: error: FATAL:  database "postgis_reg-3.4" does not exist
Loading unpackaged components from /tmp/nix-build-postgis-3.4.2.drv-0/postgis-3.4.2/regress/00-regress-install/nix/store/kg8g82wxhar9iadxrd3pra3af174khpb-postgis-3.4.2/share/postgresql/contrib/postgis
Loading PostGIS into 'postgis_reg-3.4'
sh: line 1: /tmp/pgis_reg/regress_log: Permission denied
 failed (Error encountered loading /tmp/nix-build-postgis-3.4.2.drv-0/postgis-3.4.2/regress/00-regress-install/nix/store/kg8g82wxhar9iadxrd3pra3af174khpb-postgis-3.4.2/share/postgresql/contrib/postgis/postgis.sql: /tmp/pgis_reg/regress_log)
make: *** [regress/runtest.mk:24: check-regress] Error 1
```
2024-08-26 11:39:19 -07:00