mirror of
https://github.com/NotAShelf/nvf.git
synced 2024-11-22 21:30:51 +00:00
13 lines
192 B
Nix
13 lines
192 B
Nix
|
# Helpers for converting values to lua
|
||
|
{lib}: {
|
||
|
yesNo = value:
|
||
|
if value
|
||
|
then "yes"
|
||
|
else "no";
|
||
|
|
||
|
nullString = value:
|
||
|
if value == null
|
||
|
then "nil"
|
||
|
else "'${value}'";
|
||
|
}
|