Skip to content

Commit 2bb3cf6

Browse files
committed
put flattened .#hydraJobs in .#checks
Garnix does not build the `hydraJobs` output so move them all into the `checks` output, adhering to the flake output schema because garnix does not build nested attrsets.
1 parent a5cd0b8 commit 2bb3cf6

File tree

1 file changed

+22
-0
lines changed

1 file changed

+22
-0
lines changed

flake.nix

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -393,6 +393,28 @@
393393
}) required;
394394
});
395395

396+
checks = let
397+
# https://github.com/numtide/flake-utils/issues/121#issuecomment-2589899217
398+
recurseIntoDeepAttrs = attrs:
399+
lib.recurseIntoAttrs (lib.mapAttrs (_: v:
400+
if builtins.typeOf v == "set" && !lib.isDerivation v
401+
then recurseIntoDeepAttrs v
402+
else v
403+
) attrs);
404+
in lib.genAttrs supportedSystems (system:
405+
utils.lib.flattenTree (
406+
recurseIntoDeepAttrs flake.ciJobs.${system}
407+
// {
408+
inherit (
409+
let pkgs = self.legacyPackages.${system}; in
410+
pkgs.callPackages iohkNix.utils.ciJobsAggregates {
411+
ciJobs = lib.mapAttrs (_: lib.getAttr "required") flake.ciJobs.${system};
412+
}
413+
) required;
414+
}
415+
)
416+
);
417+
396418
# allows precise paths (avoid fallbacks) with nix build/eval:
397419
outputs = self;
398420

0 commit comments

Comments
 (0)