mirror of
https://github.com/NixOS/nix
synced 2025-07-06 21:41:48 +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
|
@ -57,7 +57,7 @@ class StoreAPI;
|
|||
|
||||
/* Write a derivation to the Nix store, and return its path. */
|
||||
Path writeDerivation(StoreAPI & store,
|
||||
const Derivation & drv, const string & name);
|
||||
const Derivation & drv, const string & name, bool repair = false);
|
||||
|
||||
/* Parse a derivation. */
|
||||
Derivation parseDerivation(const string & s);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue