1
0
Fork 0
mirror of https://github.com/NixOS/nix synced 2025-06-27 04:21:16 +02:00

Init local overlay store

This commit is contained in:
John Ericson 2023-05-08 10:20:06 -04:00
parent d62f6da81f
commit f0a176e2f1
3 changed files with 97 additions and 0 deletions

View file

@ -10,6 +10,7 @@
#include "archive.hh"
#include "callback.hh"
#include "remote-store.hh"
#include "local-overlay-store.hh"
#include <nlohmann/json.hpp>
#include <regex>
@ -1391,6 +1392,8 @@ std::shared_ptr<Store> openFromNonUri(const std::string & uri, const Store::Para
return std::make_shared<UDSRemoteStore>(params);
} else if (uri == "local") {
return std::make_shared<LocalStore>(params);
} else if (uri == "local-overlay") {
return std::make_shared<LocalOverlayStore>(params);
} else if (isNonUriPath(uri)) {
Store::Params params2 = params;
params2["root"] = absPath(uri);