aboutsummaryrefslogtreecommitdiff
path: root/src/nix
diff options
context:
space:
mode:
authorEelco Dolstra <edolstra@gmail.com>2020-08-24 18:54:16 +0200
committerEelco Dolstra <edolstra@gmail.com>2020-08-24 18:54:16 +0200
commit6a67e57019f39e43866866661df17394c168d29b (patch)
treeb78bd92a856ebffc84a816dd5aea9433ad6e1290 /src/nix
parentd0690bc311ee4969fc35604fed0fe819d4938704 (diff)
Add DummyStore (dummy://)
DummyStore does not allow building or adding paths. This is useful for evaluation tests when you don't want to initialize a "proper" store.
Diffstat (limited to 'src/nix')
-rw-r--r--src/nix/main.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/nix/main.cc b/src/nix/main.cc
index 210327927..e9479f564 100644
--- a/src/nix/main.cc
+++ b/src/nix/main.cc
@@ -185,7 +185,7 @@ void mainWrapped(int argc, char * * argv)
}
if (argc == 2 && std::string(argv[1]) == "__dump-builtins") {
- EvalState state({}, openStore("ssh://foo.invalid/"));
+ EvalState state({}, openStore("dummy://"));
auto res = nlohmann::json::object();
auto builtins = state.baseEnv.values[0]->attrs;
for (auto & builtin : *builtins) {