Commit Graph

2448 Commits

Author SHA1 Message Date
github-actions[bot]
c222aba0b8 Merge master into staging-next 2024-03-17 12:01:55 +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
github-actions[bot]
00729a3d21 Merge master into staging-next 2024-03-15 18:01:19 +00: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
github-actions[bot]
4aac48ff7f Merge master into staging-next 2024-03-15 06:01:09 +00:00
Mario Rodas
72d1bae406 postgresqlPackages.pgvecto-rs: use cargo-pgrx_0_11_2 from top-level 2024-03-15 04:20:00 +00:00
Mario Rodas
6025943fa2 postgresqlPackages.timescaledb_toolkit: use cargo-pgrx_0_10_2 from top-level 2024-03-15 04:20:00 +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
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
annalee
8e038835fe Merge remote-tracking branch 'upstream/master' into staging-next 2024-03-13 00:38:07 +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
github-actions[bot]
1cef2a1be7 Merge staging-next into staging 2024-03-12 12:01:40 +00:00
R. Ryantm
e3acd5fbcf postgresqlJitPackages.lantern: 0.2.0 -> 0.2.1 2024-03-11 18:11:45 +00:00
Maximilian Bosch
8d0e5a3402 postgresqlPackages.anonymizer: init at 1.3.1 2024-03-11 14:09:17 +01:00
github-actions[bot]
339816cfdf Merge staging-next into staging 2024-03-11 12:01:42 +00:00
a-n-n-a-l-e-e
ce789e7e35 llvmPackages_{12,13,14,15,16,17,git}.{libcxx,libcxxabi}: merge libcxxabi into libcxx (#292043)
- merge libcxxabi into libcxx for LLVM 12, 13, 14, 15, 16, 17, and git.
- remove the link time workaround `-lc++ -lc++abi` from 58 packages as it is no longer required.
- fixes https://github.com/NixOS/nixpkgs/issues/166205
- provides alternative fixes for. https://github.com/NixOS/nixpkgs/issues/269548 https://github.com/NixOS/nix/issues/9640
- pkgsCross.x86_64-freebsd builds work again

This change can be represented in 3 stages
1. merge libcxxabi into libcxx -- files: pkgs/development/compilers/llvm/[12, git]/{libcxx, libcxxabi}
2. update stdenv to account for merge -- files: stdenv.{adapters, cc.wrapper, darwin}
3. remove all references to libcxxabi outside of llvm (about 58 packages modified)

### merging libcxxabi into libcxx
- take the union of the libcxxabi and libcxx cmake flags
- eliminate the libcxx-headers-only package - it was only needed to break libcxx <-> libcxxabi circular dependency
- libcxx.cxxabi is removed. external cxxabi (freebsd) will symlink headers / libs into libcxx.
- darwin will re-export the libcxxabi symbols into libcxx so linking `-lc++` is sufficient.
- linux/freebsd `libc++.so` is a linker script `LINK(libc++.so.1, -lc++abi)` making `-lc++` sufficient.
- libcxx/default.nix [12, 17] are identical except for patches and `LIBCXX_ADDITIONAL_LIBRARIES` (only used in 16+)
- git/libcxx/defaul.nix  does not link with -nostdlib when useLLVM is true so flag is removed. this is not much different than before as libcxxabi used -nostdlib where libcxx did not, so libc was linked in anyway.

### stdenv changes
- darwin bootstrap, remove references to libcxxabi and cxxabi
- cc-wrapper: remove c++ link workaround when libcxx.cxxabi doesn't exist (still exists for LLVM pre 12)
- adapter: update overrideLibcxx to account for a pkgs.stdenv that only has libcxx

### 58 package updates
- remove `NIX_LDFLAGS = "-l${stdenv.cc.libcxx.cxxabi.libName}` as no longer needed
- swift, nodejs_v8 remove libcxxabi references in the clang override

https://github.com/NixOS/nixpkgs/pull/292043
2024-03-11 03:53:37 -07: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
08449a063f postgresql12JitPackages.pgvector: 0.6.0 -> 0.6.1 2024-03-05 00:34:49 +00:00
R. Ryantm
8526253869 postgresqlJitPackages.pg_ivm: 1.7 -> 1.8 2024-03-02 06:03:47 +00:00
R. Ryantm
0793cb1235 postgresql12JitPackages.pgroonga: 3.1.7 -> 3.1.8 2024-02-28 10:15:19 +00:00
R. Ryantm
7cb461e876 postgresqlJitPackages.plpgsql_check: 2.7.2 -> 2.7.3 2024-02-27 11:47:06 +00:00
Mario Rodas
7f6a434fc9 Merge pull request #291080 from r-ryantm/auto-update/postgresql15JitPackages.pg_net
postgresql15JitPackages.pg_net: 0.7.3 -> 0.8.0
2024-02-25 07:26:19 -05:00
github-actions[bot]
d6cc5bb41d Merge master into staging-next 2024-02-24 18:00:56 +00:00
Mario Rodas
3bb3711ded postgresqlPackages.pg_net: fix build with gcc 2024-02-24 08:00:00 +00:00
R. Ryantm
7ad32769f4 postgresql15JitPackages.pg_net: 0.7.3 -> 0.8.0 2024-02-24 07:59:34 +00:00
R. Ryantm
6d762aa899 postgresql14Packages.lantern: 0.0.12 -> 0.2.0 2024-02-24 07:56:23 +00:00
github-actions[bot]
173041b36f Merge master into staging-next 2024-02-22 00:02:10 +00:00
Mario Rodas
d1f3d94f55 postgresqlPackages.timescaledb: 2.14.1 -> 2.14.2
Diff: https://github.com/timescale/timescaledb/compare/2.14.1...2.14.2

Changelog: https://github.com/timescale/timescaledb/blob/2.14.2/CHANGELOG.md
2024-02-21 04:20:00 +00:00
github-actions[bot]
b8e3b4bee5 Merge master into staging-next 2024-02-19 06:01:15 +00:00