1 # This jobset is used to generate a NixOS channel that contains a
2 # small subset of Nixpkgs, mostly useful for servers that need fast
5 # Individual jobs can be tested by running:
7 # nix-build nixos/release-small.nix -A <jobname>
9 { nixpkgs ? { outPath = (import ../lib).cleanSource ./..; revCount = 56789; shortRev = "gfedcba"; }
10 , stableBranch ? false
11 , supportedSystems ? [ "aarch64-linux" "x86_64-linux" ] # no i686-linux
16 nixpkgsSrc = nixpkgs; # urgh
18 pkgs = import ./.. { system = "x86_64-linux"; };
22 nixos' = import ./release.nix {
23 inherit stableBranch supportedSystems;
27 nixpkgs' = builtins.removeAttrs (import ../pkgs/top-level/release.nix {
28 inherit supportedSystems;
35 inherit (nixos') channel manual options iso_minimal amazonImage dummy;
37 inherit (nixos'.tests)
49 predictable-interface-names
53 inherit (nixos'.tests.installer)
59 inherit (nixos'.tests.boot)
91 tests-stdenv-gcc-stageCompare;
95 onSupported = x: map (system: "${x}.${system}") supportedSystems;
96 onSystems = systems: x: map (system: "${x}.${system}")
97 (pkgs.lib.intersectLists systems supportedSystems);
98 in pkgs.releaseTools.aggregate {
99 name = "nixos-${nixos.channel.version}";
101 description = "Release-critical builds for the NixOS channel";
104 constituents = lib.flatten [
108 "nixpkgs.release-checks"
110 (map (onSystems [ "x86_64-linux" ]) [
111 "nixos.tests.boot.biosCdrom"
112 "nixos.tests.installer.lvm"
113 "nixos.tests.installer.separateBoot"
114 "nixos.tests.installer.simple"
122 "nixos.tests.boot.uefiCdrom"
123 "nixos.tests.containers-imperative"
124 "nixos.tests.containers-ip"
125 "nixos.tests.firewall"
129 "nixos.tests.nat.firewall"
130 "nixos.tests.nat.standalone"
131 "nixos.tests.nfs4.simple"
132 "nixos.tests.openssh"
133 "nixos.tests.php.fpm"
134 "nixos.tests.php.pcre"
135 "nixos.tests.predictable-interface-names.predictable"
136 "nixos.tests.predictable-interface-names.predictableNetworkd"
137 "nixos.tests.predictable-interface-names.unpredictable"
138 "nixos.tests.predictable-interface-names.unpredictableNetworkd"
142 "nixpkgs.tests-stdenv-gcc-stageCompare"
143 "nixpkgs.opensshTest"