outputs: allow string interpolation

This commit is contained in:
Wroclaw 2024-07-07 08:34:47 +02:00
parent ccae4f8ef4
commit d5b5519f4f
2 changed files with 9 additions and 5 deletions

View file

@ -47,5 +47,5 @@ let
type != "unknown" && builtins.baseNameOf path != ".git" && !matchesGitIgnore path
) ./.;
in
if !(evaluatingInStore) then import selfInStore
else import ./outputs.nix
if !(evaluatingInStore) then { ... }@args: import selfInStore ({ selfPath = selfInStore; } // args )
else { ... }@args: import ./outputs.nix ({ selfPath = selfInStore; } // args)