From 52cc7722a0a17e722eaa1b13ef5b9ab4fe1733f0 Mon Sep 17 00:00:00 2001 From: Sebastien Bourdeauducq Date: Wed, 5 Jun 2019 23:08:55 +0800 Subject: [PATCH] add nix-shell file for firmware compilation --- shell-firmware.nix | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 shell-firmware.nix 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"; + }