mirror of
https://github.com/NixOS/nix
synced 2025-06-25 14:51:16 +02:00
* String/path concatenation operator (`+').
This commit is contained in:
parent
ee401afad8
commit
9fa07b376d
6 changed files with 43 additions and 5 deletions
|
@ -364,3 +364,15 @@ Expr makeBool(bool b)
|
|||
{
|
||||
return b ? ATmake("Bool(True)") : ATmake("Bool(False)");
|
||||
}
|
||||
|
||||
|
||||
Expr makeString(const string & s)
|
||||
{
|
||||
return ATmake("Str(<str>)", s.c_str());
|
||||
}
|
||||
|
||||
|
||||
Expr makePath(const Path & path)
|
||||
{
|
||||
return ATmake("Path(<str>)", path.c_str());
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue