Add an "unstable" aggregate to replace the "unstable" view

Views are obsolete, aggregates are the declarative replacement.
This commit is contained in:
Eelco Dolstra 2013-03-26 11:57:44 +01:00
parent 993fc7206d
commit bcc14c4d3c
4 changed files with 433 additions and 412 deletions

View File

@ -2185,7 +2185,7 @@ let
stdenv = overrideGCC stdenv (wrapGCCWith (import ../build-support/gcc-wrapper) glibc_multi gcc.gcc);
profiledCompiler = false;
enableMultilib = true;
})) else throw "Multilib gcc not supported on this system";
})) else throw "Multilib gcc not supported on ${system}";
gcc47_real = lowPrio (wrapGCC (callPackage ../development/compilers/gcc/4.7 {
inherit noSysDirs;

View File

@ -2,9 +2,7 @@
also builds the documentation and tests whether the Nix expressions
evaluate correctly. */
{ nixpkgs ? { outPath = (import ./all-packages.nix {}).lib.cleanSource ../..; revCount = 1234; shortRev = "abcdef"; }
, officialRelease ? false
}:
{ nixpkgs, officialRelease }:
with import nixpkgs.outPath {};

View File

@ -5,7 +5,7 @@ rec {
config.allowUnfree = false;
});
pkgs = allPackages { };
pkgs = allPackages { system = "x86_64-linux"; };
# The platforms for which we build Nixpkgs.

View File

@ -9,11 +9,32 @@
$ nix-build pkgs/top-level/release.nix -A coreutils.x86_64-linux
*/
{ nixpkgs ? { outPath = (import ./all-packages.nix {}).lib.cleanSource ../..; revCount = 1234; shortRev = "abcdef"; }
, officialRelease ? false
}:
with import ./release-lib.nix;
{
let
tarball = import ./make-tarball.nix;
jobs =
{ tarball = import ./make-tarball.nix { inherit nixpkgs officialRelease; };
unstable = pkgs.releaseTools.aggregate
{ name = "nixpkgs-${jobs.tarball.version}";
meta.description = "Release-critical builds for the Nixpkgs unstable channel";
members =
[ jobs.tarball
jobs.stdenv.x86_64-linux
jobs.stdenv.i686-linux
jobs.stdenv.x86_64-darwin
jobs.linux.x86_64-linux
jobs.linux.i686-linux
# Ensure that X11/GTK+ are in order.
jobs.thunderbird.x86_64-linux
jobs.thunderbird.i686-linux
];
};
} // (mapTestOn ((packagesWithMetaPlatform pkgs) // rec {
@ -433,4 +454,6 @@ with import ./release-lib.nix;
xfwm4 = linux;
};
} ))
} ));
in jobs