diff --git a/corepkgs/module.nix b/corepkgs/module.nix index 0abff42df..c8c4228d0 100644 --- a/corepkgs/module.nix +++ b/corepkgs/module.nix @@ -1,3 +1,5 @@ +with builtins; + let showPos = pos: diff --git a/src/libexpr/primops.cc b/src/libexpr/primops.cc index 0cde0d34f..511dd0de7 100644 --- a/src/libexpr/primops.cc +++ b/src/libexpr/primops.cc @@ -3507,8 +3507,7 @@ void EvalState::createBaseEnv() addPrimOp("__exec", 1, prim_exec); } - path = canonPath(settings.nixDataDir + "/nix/corepkgs/module.nix", true); - evalFile(path, v); + evalFile(canonPath(settings.nixDataDir + "/nix/corepkgs/module.nix", true), v); addConstant("module", v); /* Add a value containing the current Nix expression search path. */