diff options
author | Eelco Dolstra <eelco.dolstra@logicblox.com> | 2012-10-03T19·35-0400 |
---|---|---|
committer | Eelco Dolstra <eelco.dolstra@logicblox.com> | 2012-10-03T19·35-0400 |
commit | 2bbc4a214ee998816921cefb2d69f30d5f277d12 (patch) | |
tree | c0df3ee463f1797c011a4852c6fa7f8322ff3297 /src/nix-env/user-env.cc | |
parent | 2e90a5a2a7646f4ab36202d6a149518ccb6f750e (diff) |
nix-env: Support ‘--repair’ flag
Diffstat (limited to 'src/nix-env/user-env.cc')
-rw-r--r-- | src/nix-env/user-env.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/nix-env/user-env.cc b/src/nix-env/user-env.cc index 510c5ca38179..d7de17901031 100644 --- a/src/nix-env/user-env.cc +++ b/src/nix-env/user-env.cc @@ -45,7 +45,7 @@ bool createUserEnv(EvalState & state, DrvInfos & elems, drvsToBuild.insert(i->queryDrvPath(state)); debug(format("building user environment dependencies")); - store->buildPaths(drvsToBuild); + store->buildPaths(drvsToBuild, state.repair); /* Construct the whole top level derivation. */ PathSet references; @@ -132,7 +132,7 @@ bool createUserEnv(EvalState & state, DrvInfos & elems, /* Realise the resulting store expression. */ debug("building user environment"); - store->buildPaths(singleton<PathSet>(topLevelDrv.queryDrvPath(state))); + store->buildPaths(singleton<PathSet>(topLevelDrv.queryDrvPath(state)), state.repair); /* Switch the current user environment to the output path. */ PathLocks lock; |