diff options
author | Eelco Dolstra <eelco.dolstra@logicblox.com> | 2014-01-28T09·42+0100 |
---|---|---|
committer | Eelco Dolstra <eelco.dolstra@logicblox.com> | 2014-01-28T09·42+0100 |
commit | 6a4a8208be10462b1051c689b26577dc36495632 (patch) | |
tree | 7790d7cbc6a2e82be7249341609f9c19aaed1000 /nix-repl.cc | |
parent | 3beb6f6e763f56d791db0a99baf285e0ba745bc8 (diff) |
Fix building against current Nix
Diffstat (limited to 'nix-repl.cc')
-rw-r--r-- | nix-repl.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/nix-repl.cc b/nix-repl.cc index 78be0f98c426..1c7b2f5142e9 100644 --- a/nix-repl.cc +++ b/nix-repl.cc @@ -311,10 +311,10 @@ bool NixRepl::processLine(string line) else if (command == ":b" || command == ":s") { Value v; evalString(arg, v); - DrvInfo drvInfo; + DrvInfo drvInfo(state); if (!getDerivation(state, v, drvInfo, false)) 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)) throw Error("expression did not evaluate to a valid derivation"); |