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:
parent
006c75898c
commit
d16459b336
1 changed files with 5 additions and 0 deletions
|
@ -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;
|
||||
};
|
||||
};
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue