mirror of
https://github.com/NixOS/nix
synced 2025-06-29 06:21:14 +02:00
Fix copyPathToStore()
This commit is contained in:
parent
e89d3e0edf
commit
e7f8aa8bdd
5 changed files with 58 additions and 44 deletions
|
@ -2,6 +2,7 @@
|
|||
#include "json.hh"
|
||||
#include "eval-inline.hh"
|
||||
#include "util.hh"
|
||||
#include "store-api.hh"
|
||||
|
||||
#include <cstdlib>
|
||||
#include <iomanip>
|
||||
|
@ -33,7 +34,9 @@ void printValueAsJSON(EvalState & state, bool strict,
|
|||
|
||||
case nPath:
|
||||
// FIXME: handle accessors
|
||||
out.write(state.copyPathToStore(context, v.path().path));
|
||||
out.write(
|
||||
state.store->printStorePath(
|
||||
state.copyPathToStore(context, v.path())));
|
||||
break;
|
||||
|
||||
case nNull:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue