From 4084a18fb16e211666544fd223dcbba48b17f4d7 Mon Sep 17 00:00:00 2001 From: Eman Resu <78693624+quatquatt@users.noreply.github.com> Date: Tue, 28 Apr 2026 08:29:10 -0400 Subject: [PATCH] stdenv/check-meta: exit early if no meta defined --- pkgs/stdenv/generic/check-meta.nix | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/pkgs/stdenv/generic/check-meta.nix b/pkgs/stdenv/generic/check-meta.nix index 31bda9690f69..e3990a8eb0ab 100644 --- a/pkgs/stdenv/generic/check-meta.nix +++ b/pkgs/stdenv/generic/check-meta.nix @@ -403,9 +403,12 @@ let # Along with a boolean flag for each reason checkValidity = attrs: + if !attrs ? meta then + null + else # Check meta attribute types first, to make sure it is always called even when there are other issues # Note that this is not a full type check and functions below still need to by careful about their inputs! - if checkMeta && metaInvalid (attrs.meta or { }) then + if checkMeta && metaInvalid attrs.meta then { reason = "unknown-meta"; msg = "has an invalid meta attrset:${