From f9c9f70a40a99eccafcf2f5fb408bd2958befa6c Mon Sep 17 00:00:00 2001 From: Eman Resu <78693624+quatquatt@users.noreply.github.com> Date: Sat, 16 May 2026 00:43:10 -0400 Subject: [PATCH] lib.strings.cmakeBool: inline two function calls I can live with a function like boolToString being used, but if we're immediately modifying its output, we should homeroll it. --- lib/strings.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/strings.nix b/lib/strings.nix index ca232cc655b8..0bb8e80799f8 100644 --- a/lib/strings.nix +++ b/lib/strings.nix @@ -2200,7 +2200,7 @@ rec { cmakeBool = condition: flag: assert (lib.isBool flag); - cmakeOptionType "bool" condition (lib.toUpper (lib.boolToString flag)); + cmakeOptionType "bool" condition (if flag then "TRUE" else "FALSE"); /** Create a `"-D:STRING="` string that can be passed to typical