mirror of
https://github.com/NixOS/nix
synced 2025-07-01 12:37:59 +02:00
nix-instantiate: default to "default.nix" if no arguments are given
This commit is contained in:
parent
8745fade03
commit
9cd3ff1059
2 changed files with 5 additions and 3 deletions
|
@ -148,7 +148,8 @@ void run(Strings args)
|
|||
Expr * e = parseStdin(state);
|
||||
processExpr(state, attrPaths, parseOnly, strict, autoArgs,
|
||||
evalOnly, xmlOutput, xmlOutputSourceLocation, e);
|
||||
}
|
||||
} else if (files.empty())
|
||||
files.push_back("./default.nix");
|
||||
|
||||
foreach (Strings::iterator, i, files) {
|
||||
Expr * e = state.parseExprFromFile(lookupFileArg(state, *i));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue