minimal-bootstrap: avoid forcing meta definition

The result of commonMeta is never actually needed if assertValidity goes
away, and `.meta` is never accessed from the derivation. We perform a
similar optimization in stdenv.mkDerivation.
This commit is contained in:
Eman Resu
2026-05-12 18:52:45 -04:00
parent 2351a8df54
commit a7338726f5
@@ -23,7 +23,8 @@ rec {
baseDrv = derivation (
{
inherit (buildPlatform) system;
inherit (meta) name;
# redefining from meta to avoid forcing the thunk until it's used
name = attrs.name or "${attrs.pname}-${attrs.version}";
}
// maybeContentAddressed
// (removeAttrs attrs [