Skip to content

Commit

Permalink
nix: add aarch64-unknown-linux-gcc
Browse files Browse the repository at this point in the history
Needed for virtIO example since it cross-compiles for Linux
user-space.
  • Loading branch information
Ivan-Velickovic committed May 3, 2024
1 parent 41c3353 commit 96ab578
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions shell.nix
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@ let
pkgs = import <nixpkgs> { overlays = [ rust_overlay ]; };
rust = pkgs.rust-bin.fromRustupToolchainFile ./examples/rust/rust-toolchain.toml;
llvm = pkgs.llvmPackages_16;
linux_aarch64_cross = import <nixpkgs> {
crossSystem = { config = "aarch64-unknown-linux-gnu"; };
};
manual_deps = with pkgs.buildPackages; [
texliveFull
pandoc
Expand All @@ -24,6 +27,8 @@ in
# expect is only needed for CI testing but we include it for
# completeness
expect
# For when we need to build user-space applications for Linux guests
linux_aarch64_cross.buildPackages.gcc
] ++ manual_deps;
hardeningDisable = [ "all" ];
# Need to specify this when using Rust with bindgen
Expand Down

0 comments on commit 96ab578

Please sign in to comment.