9 lines
342 B
Nix
9 lines
342 B
Nix
{ pkgs ? import <nixpkgs> {}}:
|
|
let
|
|
hx = import ./derivations.nix { inherit pkgs; };
|
|
in
|
|
pkgs.mkShell {
|
|
buildInputs = [ hx.rustc hx.rust-riscv32imc-crates hx.binutils-riscv hx.cargo ];
|
|
RUSTFLAGS="-L ${hx.rust-riscv32imc-crates}/lib/rustlib/riscv32imc-unknown-none-elf/lib -C linker=riscv32-unknown-elf-ld -C link-arg=-Tlink.x";
|
|
}
|