2024-04-21 15:54:59 +00:00
|
|
|
self:
|
2020-04-24 23:36:52 +00:00
|
|
|
let
|
2024-04-21 15:54:59 +00:00
|
|
|
versions = {
|
|
|
|
postgresql_12 = ./12.nix;
|
|
|
|
postgresql_13 = ./13.nix;
|
|
|
|
postgresql_14 = ./14.nix;
|
|
|
|
postgresql_15 = ./15.nix;
|
|
|
|
postgresql_16 = ./16.nix;
|
|
|
|
};
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2024-04-21 15:54:59 +00:00
|
|
|
mkAttributes = jitSupport:
|
|
|
|
self.lib.mapAttrs' (version: path:
|
2023-10-19 13:55:26 +00:00
|
|
|
let
|
2024-04-21 15:54:59 +00:00
|
|
|
attrName = if jitSupport then "${version}_jit" else version;
|
2023-10-19 13:55:26 +00:00
|
|
|
in
|
2024-04-21 15:54:59 +00:00
|
|
|
self.lib.nameValuePair attrName (import path {
|
|
|
|
inherit jitSupport self;
|
|
|
|
thisAttr = attrName;
|
|
|
|
})
|
|
|
|
) versions;
|
2022-10-21 18:38:19 +00:00
|
|
|
|
2024-04-21 15:54:59 +00:00
|
|
|
in
|
|
|
|
# variations without and with JIT
|
|
|
|
(mkAttributes false) // (mkAttributes true)
|