Browse Source

add nix-shell file for firmware compilation

pull/1/head
parent
commit
52cc7722a0
  1. 8
      shell-firmware.nix

8
shell-firmware.nix

@ -0,0 +1,8 @@
{ pkgs ? import <nixpkgs> {}}:
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";
}
Loading…
Cancel
Save