Fix building against current Nix
This commit is contained in:
parent
3beb6f6e76
commit
6a4a8208be
1 changed files with 2 additions and 2 deletions
|
@ -311,10 +311,10 @@ bool NixRepl::processLine(string line)
|
||||||
else if (command == ":b" || command == ":s") {
|
else if (command == ":b" || command == ":s") {
|
||||||
Value v;
|
Value v;
|
||||||
evalString(arg, v);
|
evalString(arg, v);
|
||||||
DrvInfo drvInfo;
|
DrvInfo drvInfo(state);
|
||||||
if (!getDerivation(state, v, drvInfo, false))
|
if (!getDerivation(state, v, drvInfo, false))
|
||||||
throw Error("expression does not evaluation to a derivation, so I can't build it");
|
throw Error("expression does not evaluation to a derivation, so I can't build it");
|
||||||
Path drvPath = drvInfo.queryDrvPath(state);
|
Path drvPath = drvInfo.queryDrvPath();
|
||||||
if (drvPath == "" || !store->isValidPath(drvPath))
|
if (drvPath == "" || !store->isValidPath(drvPath))
|
||||||
throw Error("expression did not evaluate to a valid derivation");
|
throw Error("expression did not evaluate to a valid derivation");
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue