From d9fbb836ad340dcf094b193ee39d57748d7335a2 Mon Sep 17 00:00:00 2001 From: Eman Resu <78693624+quatquatt@users.noreply.github.com> Date: Tue, 26 May 2026 14:25:17 -0400 Subject: [PATCH] build-support/make-pkgconfigitem: remove throwIfNot usage --- pkgs/build-support/make-pkgconfigitem/default.nix | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pkgs/build-support/make-pkgconfigitem/default.nix b/pkgs/build-support/make-pkgconfigitem/default.nix index d78d1c022f9e..0502c70ee860 100644 --- a/pkgs/build-support/make-pkgconfigitem/default.nix +++ b/pkgs/build-support/make-pkgconfigitem/default.nix @@ -34,7 +34,8 @@ let keywordsSection = let - mustBeAList = attr: attrName: lib.throwIfNot (lib.isList attr) "'${attrName}' must be a list" attr; + mustBeAList = + attr: attrName: if !(lib.isList attr) then throw "'${attrName}' must be a list" else attr; in { "Name" = name;