Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at gcc-offload 35 lines 1.1 kB view raw
1self: 2let 3 # Before removing an EOL major version, make sure to check the versioning policy in: 4 # <nixpkgs>/nixos/modules/services/databases/postgresql.md 5 # 6 # Before removing, make sure to update it to the last minor version - and if only in 7 # an immediately preceding commit. This allows people relying on that old major version 8 # for a bit longer to still update up to this commit to at least get the latest minor 9 # version. In other words: Do not remove the second-to-last minor version from nixpkgs, 10 # yet. Update first. 11 versions = { 12 postgresql_13 = ./13.nix; 13 postgresql_14 = ./14.nix; 14 postgresql_15 = ./15.nix; 15 postgresql_16 = ./16.nix; 16 postgresql_17 = ./17.nix; 17 }; 18 19 mkAttributes = 20 jitSupport: 21 self.lib.mapAttrs' ( 22 version: path: 23 let 24 attrName = if jitSupport then "${version}_jit" else version; 25 in 26 self.lib.nameValuePair attrName ( 27 import path { 28 inherit jitSupport self; 29 } 30 ) 31 ) versions; 32 33in 34# variations without and with JIT 35(mkAttributes false) // (mkAttributes true)