mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-11 08:13:04 +00:00
0487937af3
This was discussed and agreed on in [1]. [1]: https://github.com/NixOS/nixpkgs/pull/310580#discussion_r1597284693
32 lines
1.0 KiB
Nix
32 lines
1.0 KiB
Nix
self:
|
|
let
|
|
# Before removing an EOL major version, make sure to check the versioning policy in:
|
|
# <nixpkgs>/nixos/modules/services/databases/postgresql.md
|
|
#
|
|
# Before removing, make sure to update it to the last minor version - and if only in
|
|
# an immediately preceding commit. This allows people relying on that old major version
|
|
# for a bit longer to still update up to this commit to at least get the latest minor
|
|
# version. In other words: Do not remove the second-to-last minor version from nixpkgs,
|
|
# yet. Update first.
|
|
versions = {
|
|
postgresql_12 = ./12.nix;
|
|
postgresql_13 = ./13.nix;
|
|
postgresql_14 = ./14.nix;
|
|
postgresql_15 = ./15.nix;
|
|
postgresql_16 = ./16.nix;
|
|
};
|
|
|
|
mkAttributes = jitSupport:
|
|
self.lib.mapAttrs' (version: path:
|
|
let
|
|
attrName = if jitSupport then "${version}_jit" else version;
|
|
in
|
|
self.lib.nameValuePair attrName (import path {
|
|
inherit jitSupport self;
|
|
})
|
|
) versions;
|
|
|
|
in
|
|
# variations without and with JIT
|
|
(mkAttributes false) // (mkAttributes true)
|