From 3ff4976eba4cc1586c686ec21c020843d10819b3 Mon Sep 17 00:00:00 2001 From: Gaetan Lepage Date: Tue, 28 Nov 2023 09:47:14 +0100 Subject: [PATCH] lib/helpers: mkRaw should output null for empty strings --- lib/helpers.nix | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/helpers.nix b/lib/helpers.nix index 724558ca..f2b8ccc2 100644 --- a/lib/helpers.nix +++ b/lib/helpers.nix @@ -272,9 +272,9 @@ with lib; rec { }; mkRaw = r: - ifNonNull' - r - {__raw = r;}; + if (isString r && (r != "")) + then {__raw = r;} + else null; wrapDo = string: '' do