From ee2e15b58ba265e5e0a0c30775f63b04e99aa05a Mon Sep 17 00:00:00 2001 From: Gaetan Lepage Date: Fri, 25 Aug 2023 14:08:45 +0200 Subject: [PATCH] helpers: add "__emptyString" special attr name --- lib/helpers.nix | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/helpers.nix b/lib/helpers.nix index 0465091e..8edaebcf 100644 --- a/lib/helpers.nix +++ b/lib/helpers.nix @@ -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 (