diff options
Diffstat (limited to 'pkgs/games/build-support/build-sandbox/src/nix-query.cc')
-rw-r--r-- | pkgs/games/build-support/build-sandbox/src/nix-query.cc | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/pkgs/games/build-support/build-sandbox/src/nix-query.cc b/pkgs/games/build-support/build-sandbox/src/nix-query.cc index 128c376a..71208693 100644 --- a/pkgs/games/build-support/build-sandbox/src/nix-query.cc +++ b/pkgs/games/build-support/build-sandbox/src/nix-query.cc @@ -56,11 +56,12 @@ static Path get_ancestor(query_state *qs, Path path) } } - return path; + return get_store_path(qs, path); } extern "C" { - struct query_state *new_query(void) { + struct query_state *new_query(void) + { query_state *initial = new query_state(); #if NIX_VERSION >= 112 initial->store = openStore(); @@ -72,7 +73,8 @@ extern "C" { return initial; } - void free_query(query_state *qs) { + void free_query(query_state *qs) + { delete qs; } |