Comment by nvlled
https://github.com/256lights/zb/blob/102795d6cb383a919dd378d...
TIL I can also use semicolons on lua tables, not just commas:
return derivation {
name = "hello.txt";
["in"] = path "hello.txt";
builder = "/bin/sh";
system = "x86_64-linux";
args = {"-c", "while read line; do echo \"$line\"; done < $in > $out"};
}
I like using lua as a DSL, now I like it even more! I've using lua as a html templating language that looks like this: DIV {
id="id";
class="class;
H1 "heading";
P [[
Lorem ipsum dolor sit amet, consectetur adipiscing elit,
sed do eiusmod tempor ]] / EM incididunt / [[ ut labore et
dolore magna aliqua.
]];
PRE ^ CODE [[ this is <code> tag inside <pre> ]];
}