5c370c0b2a
GitOrigin-RevId: 33d1e753c82ffc557b4a585c77de43d4c922ebb5
23 lines
530 B
Nix
23 lines
530 B
Nix
self:
|
|
let
|
|
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)
|