diff options
author | Eelco Dolstra <eelco.dolstra@logicblox.com> | 2014-07-30T09·27+0200 |
---|---|---|
committer | Eelco Dolstra <eelco.dolstra@logicblox.com> | 2014-07-30T09·28+0200 |
commit | 3d221a7bb13a864a50c549f66032ead2bf5aaec0 (patch) | |
tree | 7c5d5afbd55c67a7855f5fc938132e5cab959ce6 /src/libexpr | |
parent | 2ea2703fe987d57ff189d7a924c64f03f65170c1 (diff) |
Rename nixPath to __nixPath
The name ‘nixPath’ breaks existing code.
Diffstat (limited to 'src/libexpr')
-rw-r--r-- | src/libexpr/parser.y | 2 | ||||
-rw-r--r-- | src/libexpr/primops.cc | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/src/libexpr/parser.y b/src/libexpr/parser.y index a27c53043c74..a19269b33cc5 100644 --- a/src/libexpr/parser.y +++ b/src/libexpr/parser.y @@ -388,7 +388,7 @@ expr_simple string path($1 + 1, strlen($1) - 2); $$ = new ExprApp(CUR_POS, new ExprApp(new ExprVar(data->symbols.create("__findFile")), - new ExprVar(data->symbols.create("nixPath"))), + new ExprVar(data->symbols.create("__nixPath"))), new ExprString(data->symbols.create(path))); } | URI { $$ = new ExprString(data->symbols.create($1)); } diff --git a/src/libexpr/primops.cc b/src/libexpr/primops.cc index 543266b22aa1..4436b636ba4f 100644 --- a/src/libexpr/primops.cc +++ b/src/libexpr/primops.cc @@ -710,7 +710,7 @@ static void prim_readFile(EvalState & state, const Pos & pos, Value * * args, Va /* Find a file in the Nix search path. Used to implement <x> paths, - which are desugared to ‘findFile nixPath "x"’. */ + which are desugared to ‘findFile __nixPath "x"’. */ static void prim_findFile(EvalState & state, const Pos & pos, Value * * args, Value & v) { state.forceList(*args[0], pos); @@ -1472,7 +1472,7 @@ void EvalState::createBaseEnv() mkString(*allocAttr(*v2, symbols.create("prefix")), i.first); v2->attrs->sort(); } - addConstant("nixPath", v); + addConstant("__nixPath", v); /* Now that we've added all primops, sort the `builtins' set, because attribute lookups expect it to be sorted. */ |