Matt Sturgeon
|
4e2a022165
|
lib/to-lua: fix allowUnkeyedAttrs option
|
2024-09-29 17:28:24 +01:00 |
|
Austin Horstman
|
35788bbc5a
|
lib: cleanup with lib
|
2024-09-03 22:12:33 -05:00 |
|
Matt Sturgeon
|
4eb2ad7db7
|
lib/lua: support nixpkg's "lua-inline" type
See #1935
|
2024-08-14 00:25:59 +01:00 |
|
Matt Sturgeon
|
6dc0bda459
|
lib/to-lua: handle derivations as path strings
Fixes #1888
|
2024-07-22 13:24:16 +01:00 |
|
Matt Sturgeon
|
9b25eaaa6f
|
lib/to-lua: fix removing empties nested in lists
- Add options for removing empty/null list entries (default false)
- Fix recursion into attrs that are themselves list entries
Fixes #1804
|
2024-07-03 16:44:30 +01:00 |
|
Matt Sturgeon
|
039f6c1973
|
lib/lua: workaround builtins.match alias issue
It seems that `with lib` isn't (always) bringing `match` into scope
Odd, but we can fix by explicitly using `builtins.match`.
|
2024-06-28 23:59:39 +01:00 |
|
Matt Sturgeon
|
aff12581d8
|
lib/lua: refactor toLuaObject, now configurable
Heavily based on nixpkgs lib.generators.toPretty
|
2024-06-28 22:44:43 +01:00 |
|
Matt Sturgeon
|
53a9599cc4
|
lib/lua: pad table , with a space
Makes toLuaObject's output a little more readable.
|
2024-06-26 12:35:47 +01:00 |
|
Matt Sturgeon
|
00ce71f51a
|
lib/lua: only quote table keys when needed
|
2024-06-26 12:31:05 +01:00 |
|
Matt Sturgeon
|
01cf43dbaa
|
lib/lua: add isKeyword and isIdentifier
Allow testing whether a string is a valid lua identifier or a reserved
keyword.
|
2024-06-26 11:40:52 +01:00 |
|
Gaetan Lepage
|
d15fade62b
|
helpers/toLuaObject: fix rawKey handling
|
2024-05-31 23:31:11 +02:00 |
|
Gaetan Lepage
|
03c5f5eb74
|
helpers/toLuaObject: add support for raw keys
|
2024-05-31 21:53:40 +02:00 |
|
traxys
|
62f32bfc71
|
treewide: Reformat with nixfmt
|
2024-05-05 22:00:40 +02:00 |
|
Gaetan Lepage
|
98dbe8a89b
|
lib/helpers: internal refactoring
|
2024-01-25 16:38:59 +01:00 |
|