diff options
author | Shea Levy <shea@shealevy.com> | 2018-01-25T14·52-0800 |
---|---|---|
committer | Shea Levy <shea@shealevy.com> | 2018-02-22T12·18-0500 |
commit | ddbcd01c835419cc40f648670f28646a8f51bd15 (patch) | |
tree | 624a7d8a6ef9d913963eca35573ac774e67597bf /src/libexpr | |
parent | 98f3c75a0e16f5aaaecb25a46f988580efb04d19 (diff) |
Fix restricted mode when installing in non-canonical data dir
Diffstat (limited to 'src/libexpr')
-rw-r--r-- | src/libexpr/eval.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libexpr/eval.cc b/src/libexpr/eval.cc index 33a9bc614285..60f22a2033f1 100644 --- a/src/libexpr/eval.cc +++ b/src/libexpr/eval.cc @@ -308,7 +308,7 @@ EvalState::EvalState(const Strings & _searchPath, ref<Store> store) for (auto & i : _searchPath) addToSearchPath(i); for (auto & i : paths) addToSearchPath(i); } - addToSearchPath("nix=" + settings.nixDataDir + "/nix/corepkgs"); + addToSearchPath("nix=" + canonPath(settings.nixDataDir + "/nix/corepkgs")); if (settings.restrictEval || settings.pureEval) { allowedPaths = PathSet(); |