Commit Graph

2415 Commits

Author SHA1 Message Date
stuebinm
ff1a94e523 treewide: add meta.mainProgram to packages with a single binary
The nixpkgs-unstable channel's programs.sqlite was used to identify
packages producing exactly one binary, and these automatically added
to their package definitions wherever possible.
2024-03-19 03:14:51 +01:00
Aaron Jheng
55bf02190e cockroachdb: point to cockroachdb-bin 2024-03-18 17:19:16 -05:00
Mario Rodas
65f4f042f9
Merge pull request #296520 from r-ryantm/auto-update/dolt
dolt: 1.35.3 -> 1.35.4
2024-03-17 20:55:29 -05:00
Weijia Wang
46c6aca2d9
Merge pull request #293475 from r-ryantm/auto-update/rqlite
rqlite: 8.22.1 -> 8.23.0
2024-03-17 15:05:33 +01:00
R. Ryantm
e57bc699d0 dolt: 1.35.3 -> 1.35.4 2024-03-16 22:35:49 +00:00
Wolfgang Walther
01444957ba
postgresql: explain use of fetchurl for alpine patches 2024-03-16 11:52:39 +01:00
Wolfgang Walther
e6bfabf366
postgresql: rename enableSystemd to systemdSupport for consistency
We have gssSupport, jitSupport and pythonSupport - but enableSystemd?

Across nixpkgs there are currently three styles commonly used, about equally
often: withX, xSupport and enableX.

Let's at least use one consistent style in this package.
2024-03-15 21:11:10 +01:00
Wolfgang Walther
d7ae1c5143
postgresql: refactor to remove doInstallCheck = false
This is the default anyway.
2024-03-15 21:11:09 +01:00
Wolfgang Walther
4b6bce5c31
postgresql: refactor to remove "this" argument
This was proposed by abbradar in #150801, but left out of the follow up PR
#221851 by Ma27 to reduce the size of the diff. Compared to the initial
proposal this includes the callPackage call in the recursion, which avoids
breaking the withJIT/withoutJIT helpers.

In terms of nixpkgs, this is a pure refactor, no derivations change. However,
this makes downstream expressions like the following possible:

  (postgresql.override { jitSupport = true; }).pkgs.postgis

This would have not worked before without passing another "this" argument,
which is error prone as can be seen in this example:

  https://github.com/PostgREST/postgrest/pull/3222/files
2024-03-15 21:11:09 +01:00
Wolfgang Walther
14b3ea2789
postgresql: refactor to pass jitSupport/llvm via scope instead of passthru
This makes it less error-prone to use the llvm package in extensions, because
it will always match the package used by the postgresql derivation itself.

Previously, you could've accidentally used llvm instead of postgresql.llvm
with a different result.
2024-03-15 21:11:09 +01:00
Wolfgang Walther
b301c01e31
postgresql: refactor to move musl patches into versioned .nix files
This makes it obvious that the required argument muslPatches must be passed when
creating a new version file.

Pure refactor, not changing any derivations.
2024-03-15 18:51:02 +01:00
Wolfgang Walther
82e6c4a609
postgresql: refactor to remove psqlSchema argument
The passthru attribute is still set, but automatically created from
the major version number. Fewer moving parts decrease the chance
for mistakes.
2024-03-15 18:51:02 +01:00
Wolfgang Walther
a92a323a1d
postgresql: refactor to remove passthru's readline attribute
This seems to have been introduced 20 years ago in 5863d4f - but
seems to have been a copy&paste mistake from the beginning.
AFAICT, it's not used anywhere.
2024-03-15 18:51:02 +01:00
Wolfgang Walther
62635c9643
postgresql: refactor mkPackages in default.nix
Refactors some low hanging fruit in default.nix to make it easier to add new
versions later on.

Pure refactor, not changing any derivations.

This change makes it easier to add new versions in default.nix without messing
up - and also prevents us from adding version-specific arguments in default.nix
by accident in the future. Those should be put in the versioned .nix files
instead.
2024-03-15 18:51:02 +01:00
Wolfgang Walther
1d9f2bd726
postgresql: refactor to split up default.nix (2/2)
The recommended [1] structure for a package regarding versioning is to have each
version in a separate file. This commit just mechanically copies code around
without any changes.

Pure refactor, not changing any derivations.

[1]: pkgs/README.md
2024-03-15 18:51:02 +01:00
Wolfgang Walther
9af8c0a3b7
postgresql: refactor to split up default.nix (1/2)
This just renames default.nix to generic.nix, because the biggest chunk
of code should move that way in the next commit. This gives us a much
better diff for the next commit and makes rebasing **much** easier in
case of changes. This commit does not stand on its own and needs to go
in with the next commit (2/2).
2024-03-15 18:51:02 +01:00
Wolfgang Walther
4c8e7af941
postgresql: refactor to remove useless references to "self"
No need to reference self here, because llvmPackages / stdenv' are available
in that scope anyway. Pure refactor, derivations don't change.
2024-03-15 18:51:02 +01:00
Wolfgang Walther
719034f6f6
postgresql: refactor to move packages.nix to ext/default.nix (2/2)
This aligns more with the commonly used style in nixpkgs.
2024-03-15 18:51:01 +01:00
Wolfgang Walther
9ef7195e08
postgresql: refactor to move packages.nix to ext/default.nix (1/2)
This commit is split up into two commits to allow git to detect renames,
make rebasing easier and allow a working entry in .git-blame-ignore-revs.

To allow bisecting we allow evaluation on every commit by moving the extensions
into ext/ext/ first and back to ext/ with the next commit.
2024-03-15 18:50:20 +01:00
Wolfgang Walther
01463448be
postgresql: refactor to move locale-binary-path.patch into patches/
Seems to have been put in the wrong place.
2024-03-15 18:50:19 +01:00
R. Ryantm
dddd27dc94 postgresqlJitPackages.plpgsql_check: 2.7.3 -> 2.7.4 2024-03-15 13:32:48 +00:00
Mario Rodas
e6aefe20a1
Merge pull request #292533 from flyingcircusio/init-postgresql-anonymizer
postgresqlPackages.anonymizer: init at 1.3.1; add me & osnyx to flyingcircus team
2024-03-14 20:53:36 -05:00
R. Ryantm
d5346f1f1f rqlite: 8.22.1 -> 8.23.0 2024-03-14 15:22:12 +00:00
Maximilian Bosch
b4f8ebd295
postgresqlPackages.anonymizer: update description
Co-authored-by: Mario Rodas <marsam@users.noreply.github.com>
2024-03-14 09:50:46 +01:00
Maximilian Bosch
0cdaede144
pg-dump-anon: init at 1.3.1
This is a Go program inside the sources of `postgresql_anonymizer` that
allows to perform database dumps, but with anonymized data. I figured
that it's a little awkward to have a client program to be part of the
extension package.

So I decided to create a second package called `pg-dump-anon`. Since
it's one repository, both share `version` & `src`.

Also extended the VM test to make sure we're getting properly anonymized
data when dumping with `pg_dump_anon`.
2024-03-13 16:15:54 +01:00
R. Ryantm
96c6d758d2 dolt: 1.35.1 -> 1.35.3 2024-03-13 07:15:39 +00:00
Fabián Heredia Montiel
d5fe7897b4
Merge pull request #294457 from wolfgangwalther/postgresql-ext
postgresqlPackages: fixing multiple build failures
2024-03-12 14:55:49 -06:00
Mario Rodas
a55ee60608
Merge pull request #295082 from r-ryantm/auto-update/postgresqlJitPackages.lantern
postgresqlJitPackages.lantern: 0.2.0 -> 0.2.1
2024-03-12 01:46:00 -05:00
R. Ryantm
e3acd5fbcf postgresqlJitPackages.lantern: 0.2.0 -> 0.2.1 2024-03-11 18:11:45 +00:00
Nick Cao
996086f259
Merge pull request #294291 from r-ryantm/auto-update/dolt
dolt: 1.35.0 -> 1.35.1
2024-03-11 11:24:04 -04:00
Maximilian Bosch
8d0e5a3402
postgresqlPackages.anonymizer: init at 1.3.1 2024-03-11 14:09:17 +01:00
Atemu
ce8ddcd321
Merge pull request #281192 from diogotcorreia/pgvecto.rs
postgresqlPackages.pgvecto-rs: init at 0.2.1
2024-03-11 07:12:52 +00:00
Diogo Correia
6b97ba66a4
nixos/tests/pgvecto-rs: init 2024-03-11 01:02:17 +00:00
Diogo Correia
3060321978
pgvecto.rs: init at 0.2.1
Co-Authored-By: Daniel Albert <git@esclear.de>
Co-Authored-By: rina <k@rina.fyi>
2024-03-11 01:02:17 +00:00
Wolfgang Walther
81c32a6b33
postgresql.pkgs.plv8: 3.1.5 -> 3.1.10
https://github.com/plv8/plv8/blob/v3.1.10/Changes

3.1.10 is currently not the latest version - 3.2.2 is. However, the 3.2 branch needs
more changes to build successfully. The update to 3.1.10 makes this package build
with postgresql_16 for now.
2024-03-09 09:44:07 +01:00
Wolfgang Walther
5a57e16d64
postgresql.pkgs.pg_auto_failover: fix build on linux
This failed because libpam, which postgresql is now linked against, was missing as a
build input. In general, this is an indication that this extension needs the same
build inputs that postgresql was built with - so we just pass those instead.

This makes similar build failures less likely in the future.
2024-03-09 09:44:07 +01:00
Wolfgang Walther
f58132cb15
postgresql.pkgs.repmgr: fix build on linux
This failed because libpam, which postgresql is now linked against, was missing as a
build input. In general, this is an indication that this extension needs the same
build inputs that postgresql was built with - so we just pass those instead.

This makes similar build failures less likely in the future.
2024-03-09 09:44:07 +01:00
Wolfgang Walther
a69f3706c7
postgresql_12.pkgs.pg_repack: fix build
This failed because libxcrypt, which pg12 is linked against, was missing as a
build input. In general, this is an indication that this extension needs the
same build inputs that postgresql was built with - so we just pass those instead.

This makes similar build failures less likely in the future.
2024-03-09 09:44:07 +01:00
Wolfgang Walther
a1896739f6
postgresql.pkgs: remove broken conditions for legacy versions
PostgreSQL older than v12 is not in nixpkgs anymore, so marking those as
still broken in that case doesn't make sense anymore.
2024-03-09 09:44:07 +01:00
R. Ryantm
1d2030ab5b dolt: 1.35.0 -> 1.35.1 2024-03-08 15:21:53 +00:00
github-actions[bot]
590e65a7b3
Merge master into staging-next 2024-03-07 12:01:24 +00:00
Weijia Wang
60cfeda486
Merge pull request #285753 from r-ryantm/auto-update/mssql_jdbc
mssql_jdbc: 12.4.2 -> 12.6.1
2024-03-07 11:07:39 +01:00
Thomas Gerbet
a2f96c785d percona-server_8_0: 8.0.35-27 -> 8.0.36-28
Expected to fix the same set of issues than MySQL 8.0.36 (#284127).

* CVE-2024-20961
* CVE-2024-20962
* CVE-2024-20973
* CVE-2024-20975
* CVE-2024-20977
* CVE-2024-20960
* CVE-2024-20963
* CVE-2024-20985
* CVE-2024-20969
* CVE-2024-20967
* CVE-2024-20964
* CVE-2024-20981
* CVE-2024-20966
* CVE-2024-20970
* CVE-2024-20971
* CVE-2024-20972
* CVE-2024-20974
* CVE-2024-20976
* CVE-2024-20978
* CVE-2024-20982
* CVE-2024-20965
2024-03-06 19:33:27 +01:00
github-actions[bot]
ac779b472e
Merge master into staging-next 2024-03-05 18:01:25 +00:00
Nick Cao
f03f80f6b9
Merge pull request #293387 from r-ryantm/auto-update/proxysql
proxysql: 2.5.5 -> 2.6.0
2024-03-05 09:29:57 -05:00
github-actions[bot]
16bca48d25
Merge master into staging-next 2024-03-05 06:01:12 +00:00
R. Ryantm
2dcf474970 proxysql: 2.5.5 -> 2.6.0 2024-03-05 01:34:56 +00:00
R. Ryantm
08449a063f postgresql12JitPackages.pgvector: 0.6.0 -> 0.6.1 2024-03-05 00:34:49 +00:00
github-actions[bot]
fe2479b166
Merge master into staging-next 2024-03-04 18:00:55 +00:00
Nick Cao
54351a94b3
Merge pull request #293233 from r-ryantm/auto-update/pgbouncer
pgbouncer: 1.22.0 -> 1.22.1
2024-03-04 10:06:44 -05:00