From d7edeeac5071ae96e60303a76ff32df2fca98db9 Mon Sep 17 00:00:00 2001 From: tv Date: Tue, 4 Jan 2022 00:55:22 +0100 Subject: [PATCH] lib.toC: admit int --- lib/default.nix | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/default.nix b/lib/default.nix index 574713e48..94a81439e 100644 --- a/lib/default.nix +++ b/lib/default.nix @@ -52,6 +52,7 @@ let type = typeOf x; reject = throw "cannot convert ${type}"; in { + int = toJSON x; # close enough list = "{ ${concatStringsSep ", " (map toC x)} }"; null = "NULL"; set = if isDerivation x then toJSON x else reject;