diff --git a/shell-firmware.nix b/shell-firmware.nix new file mode 100644 index 0000000..be09fe2 --- /dev/null +++ b/shell-firmware.nix @@ -0,0 +1,8 @@ +{ pkgs ? import {}}: +let + hx = import ./derivations.nix { inherit pkgs; }; +in + pkgs.mkShell { + buildInputs = [ hx.rustc hx.rust-riscv32imc-crates hx.cargo ]; + RUSTFLAGS="-L ${hx.rust-riscv32imc-crates}/lib/rustlib/riscv32imc-unknown-none-elf/lib"; + }