git.iko.soy/typeable/nixpkgs
on master help sign in
nixos,nixpkgs: only build essentials on i686
commit7d0b001d4a5653ce87f6e10475fba8e3c55d2af8 authorGraham Christensen <graham@grahamc.com> dateThu 3 Aug 2017, 08:09 (9 years ago) parenteb7312c
4 files changed+32−26
nixos/release-combined.nix+16−6 nixos/release.nix+1−1 pkgs/top-level/release-small.nix+1−1 pkgs/top-level/release.nix+14−18
nixos/release-combined.nix+16−6
@@ -4,7 +4,8 @@
44
55{ nixpkgs ? { outPath = ./..; revCount = 56789; shortRev = "gfedcba"; }
66, stableBranch ? false
7−, supportedSystems ? [ "x86_64-linux" "i686-linux" ]
7+, supportedSystems ? [ "x86_64-linux" ]
8+, limitedSupportedSystems ? [ "i686-linux" ]
89}:
910
1011let
@@ -19,10 +20,16 @@ let
1920 else pkgs.lib.mapAttrs (n: v: removeMaintainers v) set
2021 else set;
2122
23+ allSupportedNixpkgs = builtins.removeAttrs (removeMaintainers (import ../pkgs/top-level/release.nix {
24+ supportedSystems = supportedSystems ++ limitedSupportedSystems;
25+ nixpkgs = nixpkgsSrc;
26+ })) [ "unstable" ];
27+
2228in rec {
2329
2430 nixos = removeMaintainers (import ./release.nix {
25− inherit stableBranch supportedSystems;
31+ inherit stableBranch;
32+ supportedSystems = supportedSystems ++ limitedSupportedSystems;
2633 nixpkgs = nixpkgsSrc;
2734 });
2835
@@ -38,8 +45,11 @@ in rec {
3845 maintainers = [ pkgs.lib.maintainers.eelco ];
3946 };
4047 constituents =
41− let all = x: map (system: x.${system}) supportedSystems; in
42− [ nixos.channel
48+ let
49+ all = x: map (system: x.${system})
50+ (supportedSystems ++ limitedSupportedSystems);
51+ in [
52+ nixos.channel
4353 (all nixos.dummy)
4454 (all nixos.manual)
4555
@@ -106,8 +116,8 @@ in rec {
106116 (all nixos.tests.xfce)
107117
108118 nixpkgs.tarball
109− (all nixpkgs.emacs)
110− (all nixpkgs.jdk)
119+ (all allSupportedNixpkgs.emacs)
120+ (all allSupportedNixpkgs.jdk)
111121 ];
112122 });
113123
nixos/release.nix+1−1
@@ -1,6 +1,6 @@
11{ nixpkgs ? { outPath = ./..; revCount = 56789; shortRev = "gfedcba"; }
22, stableBranch ? false
3−, supportedSystems ? [ "x86_64-linux" "i686-linux" ]
3+, supportedSystems ? [ "x86_64-linux" ]
44}:
55
66with import ../lib;
pkgs/top-level/release-small.nix+1−1
@@ -2,7 +2,7 @@
22 the load on Hydra when testing the `stdenv-updates' branch. */
33
44{ nixpkgs ? { outPath = (import ../../lib).cleanSource ../..; revCount = 1234; shortRev = "abcdef"; }
5−, supportedSystems ? [ "x86_64-linux" "i686-linux" "x86_64-darwin" ]
5+, supportedSystems ? [ "x86_64-linux" "x86_64-darwin" ]
66}:
77
88with import ./release-lib.nix { inherit supportedSystems; };
pkgs/top-level/release.nix+14−18
@@ -8,20 +8,23 @@
88
99 $ nix-build pkgs/top-level/release.nix -A coreutils.x86_64-linux
1010*/
11−
1211{ nixpkgs ? { outPath = (import ../../lib).cleanSource ../..; revCount = 1234; shortRev = "abcdef"; }
1312, officialRelease ? false
14−, # The platforms for which we build Nixpkgs.
15− supportedSystems ? [ "x86_64-linux" "i686-linux" "x86_64-darwin" "aarch64-linux" ]
16−, # Strip most of attributes when evaluating to spare memory usage
17− scrubJobs ? true
18−, # Attributes passed to nixpkgs. Don't build packages marked as unfree.
19− nixpkgsArgs ? { config = { allowUnfree = false; inHydra = true; }; }
13+ # The platforms for which we build Nixpkgs.
14+, supportedSystems ? [ "x86_64-linux" "x86_64-darwin" "aarchh64-linux" ]
15+, limitedSupportedSystems ? [ "i686-linux" ]
16+ # Strip most of attributes when evaluating to spare memory usage
17+, scrubJobs ? true
18+ # Attributes passed to nixpkgs. Don't build packages marked as unfree.
19+, nixpkgsArgs ? { config = { allowUnfree = false; inHydra = true; }; }
2020}:
2121
2222with import ./release-lib.nix { inherit supportedSystems scrubJobs nixpkgsArgs; };
2323
2424let
25+
26+ systemsWithAnySupport = supportedSystems ++ limitedSupportedSystems;
27+
2528 jobs =
2629 { tarball = import ./make-tarball.nix { inherit pkgs nixpkgs officialRelease; };
2730
@@ -55,43 +58,36 @@ let
5558 jobs.manual
5659 jobs.lib-tests
5760 jobs.stdenv.x86_64-linux
58− jobs.stdenv.i686-linux
5961 jobs.stdenv.x86_64-darwin
6062 jobs.linux.x86_64-linux
61− jobs.linux.i686-linux
6263 jobs.python.x86_64-linux
63− jobs.python.i686-linux
6464 jobs.python.x86_64-darwin
6565 jobs.python3.x86_64-linux
66− jobs.python3.i686-linux
6766 jobs.python3.x86_64-darwin
6867 # Many developers use nix-repl
6968 jobs.nix-repl.x86_64-linux
70− jobs.nix-repl.i686-linux
7169 jobs.nix-repl.x86_64-darwin
7270 # Needed by travis-ci to test PRs
73− jobs.nox.i686-linux
7471 jobs.nox.x86_64-linux
7572 jobs.nox.x86_64-darwin
7673 # Ensure that X11/GTK+ are in order.
7774 jobs.thunderbird.x86_64-linux
78− jobs.thunderbird.i686-linux
7975 # Ensure that basic stuff works on darwin
8076 jobs.git.x86_64-darwin
8177 jobs.mysql.x86_64-darwin
8278 jobs.vim.x86_64-darwin
8379 ] ++ lib.collect lib.isDerivation jobs.stdenvBootstrapTools;
8480 };
85− } // (lib.optionalAttrs (builtins.elem "i686-linux" supportedSystems) {
81+ } // (lib.optionalAttrs (builtins.elem "i686-linux" systemsWithAnySupport) {
8682 stdenvBootstrapTools.i686-linux =
8783 { inherit (import ../stdenv/linux/make-bootstrap-tools.nix { system = "i686-linux"; }) dist test; };
88− }) // (lib.optionalAttrs (builtins.elem "x86_64-linux" supportedSystems) {
84+ }) // (lib.optionalAttrs (builtins.elem "x86_64-linux" systemsWithAnySupport) {
8985 stdenvBootstrapTools.x86_64-linux =
9086 { inherit (import ../stdenv/linux/make-bootstrap-tools.nix { system = "x86_64-linux"; }) dist test; };
91− }) // (lib.optionalAttrs (builtins.elem "aarch64-linux" supportedSystems) {
87+ }) // (lib.optionalAttrs (builtins.elem "aarch64-linux" systemsWithAnySupport) {
9288 stdenvBootstrapTools.aarch64-linux =
9389 { inherit (import ../stdenv/linux/make-bootstrap-tools.nix { system = "aarch64-linux"; }) dist test; };
94− }) // (lib.optionalAttrs (builtins.elem "x86_64-darwin" supportedSystems) {
90+ }) // (lib.optionalAttrs (builtins.elem "x86_64-darwin" systemsWithAnySupport) {
9591 stdenvBootstrapTools.x86_64-darwin =
9692 let
9793 bootstrap = import ../stdenv/darwin/make-bootstrap-tools.nix { system = "x86_64-darwin"; };