2019-06-06 12:05:48 +08:00
|
|
|
{ }:
|
2019-06-05 23:08:55 +08:00
|
|
|
let
|
2019-06-06 12:05:48 +08:00
|
|
|
pkgs = import <nixpkgs> { overlays = [ import ./overlay.nix ]; };
|
2019-06-05 23:08:55 +08:00
|
|
|
hx = import ./derivations.nix { inherit pkgs; };
|
|
|
|
in
|
|
|
|
pkgs.mkShell {
|
2019-06-06 00:07:53 +08:00
|
|
|
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";
|
2019-06-05 23:08:55 +08:00
|
|
|
}
|