about summary refs log tree commit diff
path: root/lib
diff options
context:
space:
mode:
authorFelix Buehler <account@buehler.rocks>2023-03-05 22:08:45 +0100
committerFelix Buehler <account@buehler.rocks>2023-03-06 22:40:04 +0100
commitd10e69c86bcd415f5c4347d3c6b981241e913465 (patch)
tree2ceccb33151ff07aa71680771ca6b6d549641164 /lib
parent794f34657e066a5e8cc4bb34491fee02240c6ac4 (diff)
treewide: deprecate isNull
https://nixos.org/manual/nix/stable/language/builtins.html#builtins-isNull
Diffstat (limited to 'lib')
-rw-r--r--lib/generators.nix2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/generators.nix b/lib/generators.nix
index 968331a0ebde8..4357a03533984 100644
--- a/lib/generators.nix
+++ b/lib/generators.nix
@@ -422,7 +422,7 @@ ${expr "" v}
       (if v then "True" else "False")
     else if isFunction v then
       abort "generators.toDhall: cannot convert a function to Dhall"
-    else if isNull v then
+    else if v == null then
       abort "generators.toDhall: cannot convert a null to Dhall"
     else
       builtins.toJSON v;