From ff92c9d15a51dfe2f01341290b79a22090809dd0 Mon Sep 17 00:00:00 2001 From: Eman Resu <78693624+quatquatt@users.noreply.github.com> Date: Wed, 24 Jun 2026 16:53:31 -0400 Subject: [PATCH] lib.strings.cmakeFeature: beta reduce --- lib/strings.nix | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/lib/strings.nix b/lib/strings.nix index f57df9d24380..b81a04a6666b 100644 --- a/lib/strings.nix +++ b/lib/strings.nix @@ -2162,8 +2162,9 @@ rec { "LIST" ]; in - type: feature: value: + type: assert (elem (toUpper type) types); + feature: value: assert (isString feature); assert (isString value); "-D${feature}:${toUpper type}=${value}"; @@ -2232,7 +2233,7 @@ rec { ::: */ - cmakeFeature = feature: value: cmakeOptionType "string" feature value; + cmakeFeature = cmakeOptionType "string"; /** Create a `"-D="` string that can be passed to typical Meson