mirror of
https://github.com/NixOS/nix
synced 2025-07-05 04:01:47 +02:00
Add a ‘--repair’ flag to nix-instantiate
This allows repairing corrupted derivations and other source files.
This commit is contained in:
parent
a807edfae8
commit
0a7084567f
11 changed files with 36 additions and 25 deletions
|
@ -125,6 +125,8 @@ void run(Strings args)
|
|||
xmlOutputSourceLocation = false;
|
||||
else if (arg == "--strict")
|
||||
strict = true;
|
||||
else if (arg == "--repair")
|
||||
state.repair = true;
|
||||
else if (arg[0] == '-')
|
||||
throw UsageError(format("unknown flag `%1%'") % arg);
|
||||
else
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue