Skip to content

Commit

Permalink
rust-hypervisor-firmware: fix build (NixOS#257345)
Browse files Browse the repository at this point in the history
Co-authored-by: Yureka <yuka@yuka.dev>
  • Loading branch information
astro and yuyuyureka authored Sep 26, 2023
1 parent 0019463 commit e97f8fe
Showing 1 changed file with 8 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
{ lib
, fetchFromGitHub
, makeRustPlatform
, hostPlatform
, targetPlatform
, cargo
, rustc
, lld
}:

Expand All @@ -24,7 +25,12 @@ let
};
};

inherit (cross) rustPlatform;
# inherit (cross) rustPlatform;
# ^ breaks because we are doing a no_std embedded build with a custom sysroot,
# but the fast_cross rustc wrapper already passes a sysroot argument
rustPlatform = cross.makeRustPlatform {
inherit rustc cargo;
};

in

Expand Down

0 comments on commit e97f8fe

Please sign in to comment.