I have a working coreboot+edk2 build at mateidibu/coreboot-flake: Build coreboot via a nix flake - Codeberg.org
but I ran into this issue: Bad variable interpolation in UefiPayloadPkg.dsc · Issue #6135 · tianocore/edk2 · GitHub
seems that somehow one instance of variable substitution doesn’t happen, and it ends up creating a directory named UefiPayloadPkg$(BUILD_ARCH)
instead of UefiPayloadPkgX64
I fixed that with a
substituteInPlace \
payloads/external/edk2/workspace/tianocore/UefiPayloadPkg/UefiPayloadPkg.dsc \
--replace-fail \
'Build/UefiPayloadPkg$(BUILD_ARCH)' \
'Build/UefiPayloadPkgX64'
is there something about the shell used when building derivations that could lead to that?