mirror of
https://github.com/NixOS/nix
synced 2025-06-25 06:31:14 +02:00
EvalState::copyPathToStore(): Return a StorePath
This commit is contained in:
parent
845fc3f605
commit
bda879170f
3 changed files with 17 additions and 16 deletions
|
@ -1,6 +1,7 @@
|
|||
#include "value-to-json.hh"
|
||||
#include "eval-inline.hh"
|
||||
#include "util.hh"
|
||||
#include "store-api.hh"
|
||||
|
||||
#include <cstdlib>
|
||||
#include <iomanip>
|
||||
|
@ -35,7 +36,7 @@ json printValueAsJSON(EvalState & state, bool strict,
|
|||
|
||||
case nPath:
|
||||
if (copyToStore)
|
||||
out = state.copyPathToStore(context, v.path);
|
||||
out = state.store->printStorePath(state.copyPathToStore(context, v.path));
|
||||
else
|
||||
out = v.path;
|
||||
break;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue