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