make-derivation.nix: Fix checkMetaRecursively

Oddly, I can't reproduce the error, but this change will make it
more robust.
See https://github.com/NixOS/nixpkgs/pull/295378#issuecomment-2002094487
This commit is contained in:
Robert Hensing 2024-03-17 19:28:47 +01:00
parent 8437d13b56
commit 05f4b7b46d

View file

@ -556,8 +556,8 @@ let
meta = checkMeta.commonMeta { meta = checkMeta.commonMeta {
inherit validity attrs pos; inherit validity attrs pos;
references = attrs.nativeBuildInputs ++ attrs.buildInputs references = attrs.nativeBuildInputs or [] ++ attrs.buildInputs or []
++ attrs.propagatedNativeBuildInputs ++ attrs.propagatedBuildInputs; ++ attrs.propagatedNativeBuildInputs or [] ++ attrs.propagatedBuildInputs or [];
}; };
validity = checkMeta.assertValidity { inherit meta attrs; }; validity = checkMeta.assertValidity { inherit meta attrs; };