This website requires JavaScript.
Explore
Help
Sign In
dan
/
liminix
Watch
1
Star
0
Fork
5
You've already forked liminix
Code
2c7a16d792
liminix
/
pkgs
/
write-fennel-script
/
default.nix
4 lines
95 B
Nix
Raw
Normal View
History
Unescape
Escape
cleanup whitespace and commas * [] is now [ ] * {} is now { } * commas in arglists go at end of line not beginning In short, I ran the whole thing through nixfmt-rfc-style but only accepted about 30% of its changes. I might grow accustomed to more of it over time
2024-06-30 15:58:29 +00:00
{
writeFennel
,
stdenv
}:
name
:
packages
:
source
:
writeFennel is writeFennelScript with knobs on The second parameter is now an options attrset, wherein we will pile all kinds of cool stuff. Right now the only cool bit is `mainFunction`, which allows you to compile a fennel module into a lua script and name the function that should be executed when the script runs. This makes it easier to write testable Fennel code, because the test script can require the module and call stuff in it.
2023-09-12 16:45:18 +00:00
writeFennel
name
{
inherit
packages
;
}
source
Copy Permalink