mirror of
https://github.com/NixOS/nix
synced 2025-06-26 20:01:15 +02:00
* The result of a concatenation with a derivation on the left-hand
side should be a path, I guess. * Handle paths that are in the store but not direct children of the store directory. * Ugh, hack to prevent double context wrapping.
This commit is contained in:
parent
0e705391db
commit
e347033f71
2 changed files with 13 additions and 4 deletions
|
@ -267,6 +267,7 @@ string coerceToStringWithContext(EvalState & state,
|
|||
if (a && evalString(state, a) == "derivation") {
|
||||
a = attrs.get(toATerm("outPath"));
|
||||
if (!a) throw TypeError("output path missing from derivation");
|
||||
isPath = true;
|
||||
context = ATinsert(context, e);
|
||||
return evalPath(state, a);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue