helpers: add "__emptyString" special attr name

This commit is contained in:
Gaetan Lepage 2023-08-25 14:08:45 +02:00 committed by Gaétan Lepage
parent 1319a89ac2
commit ee2e15b58b

View file

@ -21,6 +21,8 @@ with lib; rec {
(n: v:
if head (stringToCharacters n) == "@"
then toLuaObject v
else if n == "__emptyString"
then "[''] = " + (toLuaObject v)
else "[${toLuaObject n}] = " + (toLuaObject v))
(filterAttrs
(