Add outputFunctionOverrides
They can be used to override a node without (necessarily) overriding its inputs.
This commit is contained in:
parent
70260a0ac2
commit
e299543e6d
|
@ -5,7 +5,7 @@
|
|||
# containing 'defaultNix' (to be used in 'default.nix'), 'shellNix'
|
||||
# (to be used in 'shell.nix').
|
||||
|
||||
{ src, system ? builtins.currentSystem or "unknown-system", inputOverrides ? {} }:
|
||||
{ src, system ? builtins.currentSystem or "unknown-system", inputOverrides ? {}, outputFunctionOverrides ? {} }:
|
||||
|
||||
let
|
||||
|
||||
|
@ -169,7 +169,7 @@ let
|
|||
(resolveInput lockFile.nodes.${nodeName}.inputs.${builtins.head path})
|
||||
(builtins.tail path);
|
||||
|
||||
outputs = flake.outputs (inputs // { self = result; });
|
||||
outputs = (outputFunctionOverrides.${key} or flake.outputs) (inputs // { self = result; });
|
||||
|
||||
result = outputs // sourceInfo // { inherit inputs; inherit outputs; inherit sourceInfo; };
|
||||
in
|
||||
|
|
Loading…
Reference in a new issue