3
0
Fork 0
forked from mirrors/nixpkgs

release-combined: Remove maintainers from everything but `tested'

This will make it possible to turn on email notifications for the
`tested' job without duplicating emails for all the other jobs

Signed-off-by: Shea Levy <shea@shealevy.com>
This commit is contained in:
Shea Levy 2013-04-05 13:59:43 -04:00
parent 52fc087296
commit 0ff2d2755b

View file

@ -3,21 +3,28 @@
, officialRelease ? false
}:
let nixpkgs' = nixpkgs; pkgs = import <nixpkgs> {}; in # urgh
let
nixpkgs' = nixpkgs; # urgh
rec {
pkgs = import <nixpkgs> {};
nixos = import ./release.nix {
removeMaintainers = set: if builtins.isAttrs set
then if (set.type or "") == "derivation"
then set // { meta = builtins.removeAttrs (set.meta or {}) [ "maintainers" ]; }
else pkgs.lib.mapAttrs (n: v: removeMaintainers v) set
else set;
in rec {
nixos = removeMaintainers (import ./release.nix {
inherit nixosSrc officialRelease;
nixpkgs = nixpkgs';
};
});
nixpkgs = import <nixpkgs/pkgs/top-level/release.nix> {
nixpkgs = removeMaintainers (import <nixpkgs/pkgs/top-level/release.nix> {
inherit officialRelease;
nixpkgs = nixpkgs';
# Only do Linux builds.
supportedSystems = [ "x86_64-linux" "i686-linux" ];
};
});
tested = pkgs.releaseTools.aggregate {
name = "nixos-${nixos.tarball.version}";