buildLakePackage: force pname, version, and structured attrs

This is a new builder so we should force those attrs
This commit is contained in:
Ross Smyth
2026-05-07 17:36:08 -04:00
parent 5aa41a5442
commit 82b8052284
+6 -2
View File
@@ -43,6 +43,8 @@ lib.extendMkDerivation {
extendDrvArgs =
finalAttrs:
{
pname,
version,
nativeBuildInputs ? [ ],
passthru ? { },
@@ -85,8 +87,7 @@ lib.extendMkDerivation {
null
else
(fetchLakeDeps {
name = finalAttrs.name or "${finalAttrs.pname}-${finalAttrs.version}";
inherit (finalAttrs) src;
inherit (finalAttrs) src pname version;
hash = lakeHash;
sourceRoot = finalAttrs.sourceRoot or "";
patches = finalAttrs.patches or [ ];
@@ -112,6 +113,7 @@ lib.extendMkDerivation {
in
{
strictDeps = true;
__structuredAttrs = true;
nativeBuildInputs = nativeBuildInputs ++ [
lean4
@@ -226,6 +228,8 @@ lib.extendMkDerivation {
};
meta = meta // {
# Note: This conflates the platforms that the Lean compiler can run on (a package build system) and the platforms the Lean compiler
# can target (build host)
platforms = meta.platforms or lean4.meta.platforms;
};
};