Factor out the unix domain socket-specific code from RemoteStore

This commit is contained in:
Shea Levy 2016-09-02 14:15:04 -04:00
parent 7d4ccd9b17
commit 0f39633290
5 changed files with 69 additions and 36 deletions

View file

@ -37,7 +37,8 @@ namespace nix {
LocalStore::LocalStore(const Params & params)
: LocalFSStore(params)
: Store(params)
, LocalFSStore(params)
, realStoreDir(get(params, "real", rootDir != "" ? rootDir + "/nix/store" : storeDir))
, dbDir(stateDir + "/db")
, linksDir(realStoreDir + "/.links")