1
0
Fork 0
mirror of https://github.com/hercules-ci/flake-parts.git synced 2025-03-31 04:04:55 +00:00

perSystem: include outPath in flake attributes

This commit is contained in:
Parthiv Seetharaman 2023-05-08 09:08:26 -07:00
parent 006c75898c
commit d16459b336

View file

@ -130,6 +130,11 @@ in
# where we run in the context of an overlay, and the performance cost of the
# extra `pkgs` makes the cost of running `perSystem` probably negligible.
_module.args.getSystemIgnoreWarning = system: config.allSystems.${system} or (config.perSystem system);
perInput = system: flake: {
# Allow for input coercion to string, ex: "${inputs'.flake-parts}/shell.nix"
inherit (flake) outPath;
};
};
}