lazy: add missing load() wrapper

This commit is contained in:
Ching Pei Yang 2024-11-11 00:44:13 +01:00
parent 33f584b8e1
commit 11bb327ab5
No known key found for this signature in database
GPG key ID: B3841364253DC4C8

View file

@ -50,6 +50,16 @@
end end
''; '';
load =
if spec.load != null
then
mkLuaInline ''
funcion()
${spec.load}
end
''
else null;
keys = keys =
if typeOf spec.keys == "list" && length spec.keys > 0 && typeOf (head spec.keys) == "set" if typeOf spec.keys == "list" && length spec.keys > 0 && typeOf (head spec.keys) == "set"
then map toLuaLznKeySpec (filter (keySpec: keySpec.key != null) spec.keys) then map toLuaLznKeySpec (filter (keySpec: keySpec.key != null) spec.keys)