From 0a7084567fc4e7d077863075a7ea1bb82d843341 Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Wed, 3 Oct 2012 15:09:18 -0400 Subject: Add a ‘--repair’ flag to nix-instantiate MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This allows repairing corrupted derivations and other source files. --- src/libstore/derivations.hh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/libstore/derivations.hh') diff --git a/src/libstore/derivations.hh b/src/libstore/derivations.hh index a5ffc2252064..7d38e60c0fe6 100644 --- a/src/libstore/derivations.hh +++ b/src/libstore/derivations.hh @@ -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); -- cgit 1.4.1