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:
parent
d62f6da81f
commit
f0a176e2f1
3 changed files with 97 additions and 0 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue