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:
@@ -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 [
|
||||
|
||||
Reference in New Issue
Block a user