Skip to content

Commit

Permalink
Possibly breaking: numbers passed from nix to lua via categories set …
Browse files Browse the repository at this point in the history
…will now remain numbers
  • Loading branch information
BirdeeHub committed Nov 12, 2024
1 parent d739e02 commit ae4eaaf
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions builder/ncTools.nix
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@
if value == true then "true"
else if value == false then "false"
else if value == null then "nil"
else if isFloat value || isInt value then toString value
else if isList value then "${luaListPrinter level value}"
else if lib.isDerivation value then luaEnclose "${value}"
else if isLuaInline value then replacer (luaToString value)
Expand Down
1 change: 1 addition & 0 deletions nixCatsHelp/nixCats_plugin.txt
Original file line number Diff line number Diff line change
Expand Up @@ -144,6 +144,7 @@ Note: it also accepts other things.
lists will become arrays
sets will become tables
null will become nil
numbers will remain numbers
derivations will become store paths

everything that isnt true, false, null,
Expand Down

0 comments on commit ae4eaaf

Please sign in to comment.