mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-12-26 12:53:59 +03:00
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:
parent
52fc087296
commit
0ff2d2755b
@ -3,21 +3,28 @@
|
|||||||
, officialRelease ? false
|
, 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;
|
inherit nixosSrc officialRelease;
|
||||||
nixpkgs = nixpkgs';
|
nixpkgs = nixpkgs';
|
||||||
};
|
});
|
||||||
|
|
||||||
nixpkgs = import <nixpkgs/pkgs/top-level/release.nix> {
|
nixpkgs = removeMaintainers (import <nixpkgs/pkgs/top-level/release.nix> {
|
||||||
inherit officialRelease;
|
inherit officialRelease;
|
||||||
nixpkgs = nixpkgs';
|
nixpkgs = nixpkgs';
|
||||||
# Only do Linux builds.
|
# Only do Linux builds.
|
||||||
supportedSystems = [ "x86_64-linux" "i686-linux" ];
|
supportedSystems = [ "x86_64-linux" "i686-linux" ];
|
||||||
};
|
});
|
||||||
|
|
||||||
tested = pkgs.releaseTools.aggregate {
|
tested = pkgs.releaseTools.aggregate {
|
||||||
name = "nixos-${nixos.tarball.version}";
|
name = "nixos-${nixos.tarball.version}";
|
||||||
|
Loading…
Reference in New Issue
Block a user