git.iko.soy/typeable/nixpkgs
on master help sign in
nixos/release.nix: Use forTheseSystems from release-lib

Currently, even if you pass `supportedSystems = [ "aarch64-linux" ]` you end up with e.g. `nixos.iso_graphical.x86_64-linux` job. Using forTheseSystems from release-lib avoids that. This shouldn't affect the usual x86 trunk-combined jobset.

commit4ccf308d665fd2cd60c57d2fe17d5c597570e978 authorTuomas Tynkkynen <tuomas@tuxera.com> dateTue 16 Jan 2018, 18:42 (9 years ago) parentb3c50ec
1 file changed+10−19
nixos/release.nix+10−19
nixos/release.nix+10−19
@@ -123,22 +123,13 @@ in rec {
123123 # Build the initial ramdisk so Hydra can keep track of its size over time.
124124 initialRamdisk = buildFromConfig ({ pkgs, ... }: { }) (config: config.system.build.initialRamdisk);
125125
126− netboot = {
127− x86_64-linux = makeNetboot {
128− system = "x86_64-linux";
129− modules = [
130− ./modules/installer/netboot/netboot-minimal.nix
131− versionModule
132− ];
133− };
134− } // (optionalAttrs (elem "aarch64-linux" supportedSystems) {
135− aarch64-linux = makeNetboot {
136− system = "aarch64-linux";
137− modules = [
138− ./modules/installer/netboot/netboot-minimal.nix
139− versionModule
140− ];
141− };});
126+ netboot = forTheseSystems [ "x86_64-linux" "aarch64-linux" ] (system: makeNetboot {
127+ inherit system;
128+ modules = [
129+ ./modules/installer/netboot/netboot-minimal.nix
130+ versionModule
131+ ];
132+ });
142133
143134 iso_minimal = forAllSystems (system: makeIso {
144135 module = ./modules/installer/cd-dvd/installation-cd-minimal.nix;
@@ -146,7 +137,7 @@ in rec {
146137 inherit system;
147138 });
148139
149− iso_graphical = genAttrs [ "x86_64-linux" ] (system: makeIso {
140+ iso_graphical = forTheseSystems [ "x86_64-linux" ] (system: makeIso {
150141 module = ./modules/installer/cd-dvd/installation-cd-graphical-kde.nix;
151142 type = "graphical";
152143 inherit system;
@@ -154,7 +145,7 @@ in rec {
154145
155146 # A variant with a more recent (but possibly less stable) kernel
156147 # that might support more hardware.
157− iso_minimal_new_kernel = genAttrs [ "x86_64-linux" ] (system: makeIso {
148+ iso_minimal_new_kernel = forTheseSystems [ "x86_64-linux" ] (system: makeIso {
158149 module = ./modules/installer/cd-dvd/installation-cd-minimal-new-kernel.nix;
159150 type = "minimal-new-kernel";
160151 inherit system;
@@ -162,7 +153,7 @@ in rec {
162153
163154
164155 # A bootable VirtualBox virtual appliance as an OVA file (i.e. packaged OVF).
165− ova = genAttrs [ "x86_64-linux" ] (system:
156+ ova = forTheseSystems [ "x86_64-linux" ] (system:
166157
167158 with import nixpkgs { inherit system; };
168159