rust-hypervisor-firmware: move RUSTFLAGS env variables into env for structuredAttrs

This commit is contained in:
Stefan Frijters
2026-01-07 21:40:43 +01:00
parent 64e28411d2
commit a4f3159013
@@ -44,14 +44,15 @@ rustPlatform.buildRustPackage rec {
# https://github.com/cloud-hypervisor/rust-hypervisor-firmware/issues/249
auditable = false;
RUSTC_BOOTSTRAP = 1;
env = {
RUSTC_BOOTSTRAP = 1;
RUSTFLAGS = "-C linker=lld -C linker-flavor=ld.lld";
};
nativeBuildInputs = [
lld
];
RUSTFLAGS = "-C linker=lld -C linker-flavor=ld.lld";
# Tests don't work for `no_std`. See https://os.phil-opp.com/testing/
doCheck = false;