1
0
Fork 0
mirror of https://github.com/NixOS/nix synced 2025-06-26 07:31:15 +02:00

Actually fix nixDataDir in non-canonical path

This commit is contained in:
Shea Levy 2018-02-28 06:19:40 -05:00
parent 8a5da93841
commit 14ca85688c
No known key found for this signature in database
GPG key ID: 5C0BD6957D86FE27
2 changed files with 2 additions and 2 deletions

View file

@ -313,7 +313,7 @@ EvalState::EvalState(const Strings & _searchPath, ref<Store> store)
for (auto & i : _searchPath) addToSearchPath(i);
for (auto & i : paths) addToSearchPath(i);
}
addToSearchPath("nix=" + canonPath(settings.nixDataDir + "/nix/corepkgs"));
addToSearchPath("nix=" + canonPath(settings.nixDataDir + "/nix/corepkgs", true));
if (settings.restrictEval || settings.pureEval) {
allowedPaths = PathSet();