Commit Graph

328 Commits

Author SHA1 Message Date
Wolfgang Walther
4cc4534295
postgresql_17: init at 17.0 2024-10-26 15:15:24 +02:00
Wolfgang Walther
0487937af3
postgresql: add readme with eol-policy
This was discussed and agreed on in [1].

[1]: https://github.com/NixOS/nixpkgs/pull/310580#discussion_r1597284693
2024-06-14 09:38:23 +02:00
Wolfgang Walther
aea4ba847a
postgresql: remove thisAttr argument by calling tests directly
Previously, it was not possible to run tests on an overridden derivation, because
the derivation under test was always pulled from pkgs.

With this change, the following will return the same test:

  postgresql_jit.tests

and

  (postgresql.override { jitSupport = true; }).tests
2024-04-04 08:41:17 +02: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
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
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
Mario Rodas
2526c59458 Revert "postgresql: Fix build with libxml2 2.12"
This reverts commit 2ed47724a6.
2024-02-08 04:20:00 +00:00
Mario Rodas
cbb254b9f0 postgresql_16: 16.1 -> 16.2
Changelog: https://www.postgresql.org/docs/release/16.2/
2024-02-08 04:20:00 +00:00
Mario Rodas
2ad23c3f31 postgresql_15: 15.5 -> 15.6
Changelog: https://www.postgresql.org/docs/release/15.6/
2024-02-08 04:20:00 +00:00
Mario Rodas
60a659a0c3 postgresql_14: 14.10 -> 14.11
Changelog: https://www.postgresql.org/docs/release/14.11/
2024-02-08 04:20:00 +00:00
Mario Rodas
aa9a97dc17 postgresql_13: 13.13 -> 13.14
Changelog: https://www.postgresql.org/docs/release/13.14/
2024-02-08 04:20:00 +00:00
Mario Rodas
625f00d753 postgresql_12: 12.17 -> 12.18
Changelog: https://www.postgresql.org/docs/release/12.18/
2024-02-08 04:20:00 +00:00
Mario Rodas
005a253cb2 postgresql: add support to PL/Python 2024-01-12 04:20:00 +00:00
Jan Tojnar
2ed47724a6 postgresql: Fix build with libxml2 2.12
libxml 2.12.0 made the error argument of xmlStructuredErrorFunc const
resulting in -Wincompatible-function-pointer-types error with CLang 16 and GCC 14.
61034116d0
2023-12-26 23:52:27 +01:00
Arnar Gauti Ingason
5841f51f88 postgresql: add pam support on linux 2023-12-12 08:22:06 +01:00
Mario Rodas
57970bb73a postgresql_jit: fix build
These patches are already included in the latest release.

This reverts commit 8fbd381b8a.
2023-11-12 04:20:00 +00:00
Mario Rodas
943ad0d53e postgresql_16: 16.0 -> 16.1
Changelog: https://www.postgresql.org/docs/release/16.1/
2023-11-10 04:20:00 +00:00
Mario Rodas
b38f22b9ca postgresql_15: 15.4 -> 15.5
Changelog: https://www.postgresql.org/docs/release/15.5/
2023-11-10 04:20:00 +00:00
Mario Rodas
381fc074de postgresql_14: 14.9 -> 14.10
Changelog: https://www.postgresql.org/docs/release/14.10/
2023-11-10 04:20:00 +00:00
Mario Rodas
c7a1eb3332 postgresql_13: 13.12 -> 13.13
Changelog: https://www.postgresql.org/docs/release/13.13/
2023-11-10 04:20:00 +00:00
Mario Rodas
1abcce65a9 postgresql_12: 12.16 -> 12.17
Changelog: https://www.postgresql.org/docs/release/12.17/
2023-11-10 04:20:00 +00:00
Mario Rodas
8a770420d4 postgresql: add changelog to meta 2023-11-10 04:20:00 +00:00
github-actions[bot]
97868dae8e
Merge master into staging-next 2023-10-31 06:00:58 +00:00
Maximilian Bosch
1220a4d4dd
postgresql_11: remove
As described in the release lifecycle docs from postgresql[1], v11 will
stop receiving fixes as of Nov 9 2023. This means it's EOL throughout
the entire lifetime of 23.11, so let's drop it now.

A lot of examples are also referencing postgresql_11. Where it's
sensible, use postgresql_15 as example now to avoid confusion.

This is also handy because the LLVM 16 fix for postgresql is not
available for postgresql 11 ;-)

[1] https://www.postgresql.org/support/versioning/
2023-10-30 10:41:16 +01:00
Maximilian Bosch
8fbd381b8a
postgresql_jit: fix build
Failing Hydra build: https://hydra.nixos.org/build/239477682/nixlog/1

This got fixed upstream already in the release branches, applying the
patches here solves the issue.

This skips v11 since there's no patch available and it will be dropped
soon anyways[1].

[1] #264250
2023-10-29 23:58:28 +01:00
Meet Barot
19a4154a7c postgresql: Add meta.pkgConfigModules and test 2023-10-16 00:36:24 -04:00
Mario Rodas
eb745fa4d7
Merge pull request #259734 from marsam/postgresql-update-extensions
postgresql: update extensions
2023-10-10 08:35:15 -05:00
Yureka
8a0223ec08
postgresql: reorganize musl patches (#260067)
This also adds support for building postgresql 15 and 16 under musl.
2023-10-10 00:51:44 +02:00
Mario Rodas
9bd59c622a postgresql: add dlSuffix to passthru
PostgreSQL changed the extension of its extensions in Darwin to use .dylib [1]

[1] b55f62abb2
2023-09-22 04:20:00 +00:00
Steve Purcell
ae5b96f3ab postgresql_16: init at 16.0 2023-09-16 18:19:06 +02:00
github-actions[bot]
4a9909e0db
Merge master into staging-next 2023-08-19 00:01:42 +00:00
Sean D Gillespie
acc01be813 postgresql: fix musl patches 2023-08-18 13:16:14 -05:00
ajs124
061c96b486 postgresql_15: 15.3 -> 15.4
https://www.postgresql.org/docs/release/15.4/
2023-08-10 23:19:35 -05:00
ajs124
8f5976b479 postgresql_14: 14.8 -> 14.9
https://www.postgresql.org/docs/release/14.9/
2023-08-10 23:19:35 -05:00
ajs124
f256648786 postgresql_13: 13.11 -> 13.12
https://www.postgresql.org/docs/release/13.12/
2023-08-10 23:19:35 -05:00
ajs124
363048444b postgresql_12: 12.15 -> 12.16
https://www.postgresql.org/docs/release/12.16/
2023-08-10 23:19:35 -05:00
ajs124
b606993d67 postgresql_11: 11.20 -> 11.21
https://www.postgresql.org/docs/release/11.21/
2023-08-10 23:19:35 -05:00
Maximilian Bosch
c92f3af69d
Merge pull request #228349 from yu-re-ka/musl-postgresql
pkgsMusl.postgresql: fix build
2023-06-07 18:30:16 +02:00
Yureka
8d4a81b185 pkgsMusl.postgresql: fix build 2023-05-28 19:51:06 +02:00
github-actions[bot]
a0ba80a626
Merge staging-next into staging 2023-05-12 18:01:54 +00:00
Alyssa Ross
5e06b3cb19 treewide: don't use rustPlatform.rust
This will be deprecated in the next commit.
2023-05-12 15:31:21 +00:00
ajs124
3abafec08f postgresql_15: 15.2 -> 15.3
https://www.postgresql.org/docs/release/15.3/
2023-05-12 13:40:01 +02:00
ajs124
08b8054366 postgresql_14: 14.7 -> 14.8
https://www.postgresql.org/docs/release/14.8/
2023-05-12 13:40:01 +02:00
ajs124
370e6c896d postgresql_13: 13.10 -> 13.11
https://www.postgresql.org/docs/release/13.11/
2023-05-12 13:40:01 +02:00
ajs124
b201c295c7 postgresql_12: 12.14 -> 12.15
https://www.postgresql.org/docs/release/12.15/
2023-05-12 13:40:01 +02:00
ajs124
c56299151c postgresql_11: 11.19 -> 11.20
https://www.postgresql.org/docs/release/11.20/
2023-05-12 13:40:01 +02:00