releaseTools.aggregate: support glob constituents

Lets jobsets reference whole job subtrees by fnmatch pattern instead
of forcing their evaluation inside the aggregate.
This commit is contained in:
Jörg Thalheim
2026-08-23 07:27:24 +02:00
parent 5937bc341d
commit 36f7e3e5de

View File

@@ -124,12 +124,16 @@ rec {
name,
constituents,
meta ? { },
# Interpret string constituents as fnmatch patterns matched
# against all job names of the jobset.
globConstituents ? false,
}:
pkgs.runCommand name
{
inherit constituents meta;
preferLocalBuild = true;
_hydraAggregate = true;
_hydraGlobConstituents = globConstituents;
}
''
mkdir -p $out/nix-support