mirror of
https://github.com/NixOS/nix.git
synced 2024-11-25 16:23:02 +00:00
toString also coerces a set with an outPath attribute to a string
nix-repl> builtins.toString { outPath = "somestring"; } "somestring"
This commit is contained in:
parent
9cf991f421
commit
ae0ed53b09
@ -3109,7 +3109,7 @@ static RegisterPrimOp primop_toString({
|
||||
|
||||
- A path (e.g., `toString /foo/bar` yields `"/foo/bar"`.
|
||||
|
||||
- A set containing `{ __toString = self: ...; }`.
|
||||
- A set containing `{ __toString = self: ...; }` or `{ outPath = ...; }`.
|
||||
|
||||
- An integer.
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user