mirror of
https://github.com/CHN-beta/nixpkgs.git
synced 2026-01-11 18:32:23 +08:00
ci/eval/compare: refactor
Simplification after the last step.
(cherry picked from commit 4126ef7e00)
This commit is contained in:
committed by
github-actions[bot]
parent
d766035d65
commit
dd3e8f668a
@@ -22,27 +22,18 @@ let
|
||||
|
||||
anyMatchingFiles = files: builtins.any anyMatchingFile files;
|
||||
|
||||
enrichedAttrs = builtins.map (name: {
|
||||
path = lib.splitString "." name;
|
||||
name = name;
|
||||
}) (changedattrs ++ removedattrs);
|
||||
|
||||
attrsWithPackages = builtins.map (
|
||||
pkg: pkg // { package = lib.getAttrFromPath pkg.path pkgs; }
|
||||
) enrichedAttrs;
|
||||
|
||||
attrsWithMaintainers = builtins.map (
|
||||
pkg:
|
||||
name:
|
||||
let
|
||||
meta = pkg.package.meta or { };
|
||||
package = lib.getAttrFromPath (lib.splitString "." name) pkgs;
|
||||
in
|
||||
pkg
|
||||
// {
|
||||
{
|
||||
inherit name package;
|
||||
# TODO: Refactor this so we can ping entire teams instead of the individual members.
|
||||
# Note that this will require keeping track of GH team IDs in "maintainers/teams.nix".
|
||||
maintainers = meta.maintainers or [ ];
|
||||
maintainers = package.meta.maintainers or [ ];
|
||||
}
|
||||
) attrsWithPackages;
|
||||
) (changedattrs ++ removedattrs);
|
||||
|
||||
relevantFilenames =
|
||||
drv:
|
||||
|
||||
Reference in New Issue
Block a user