mirror of
https://github.com/privatevoid-net/nix-super.git
synced 2024-11-10 08:16:15 +02:00
Revert "prim_toPath: Actually make the string a path"
This reverts commit 2980d1fba9
. It
causes a regression in NixOS evaluation:
string `/nix/store/ya3s5gmj3b28170fpbjhgsk8wzymkpa1-pommed-1.39/etc/pommed.conf' cannot refer to other paths
This commit is contained in:
parent
f794465ca8
commit
17dc306aa3
1 changed files with 1 additions and 3 deletions
|
@ -517,9 +517,7 @@ static void prim_toPath(EvalState & state, Value * * args, Value & v)
|
||||||
{
|
{
|
||||||
PathSet context;
|
PathSet context;
|
||||||
Path path = state.coerceToPath(*args[0], context);
|
Path path = state.coerceToPath(*args[0], context);
|
||||||
if (!context.empty())
|
mkString(v, canonPath(path), context);
|
||||||
throw EvalError(format("string `%1%' cannot refer to other paths") % path);
|
|
||||||
mkPath(v, canonPath(path).c_str());
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue