Compare commits
1 Commits
1cc9ba632a
...
82d7df7146
Author | SHA1 | Date |
---|---|---|
foosinn | 82d7df7146 |
|
@ -0,0 +1,4 @@
|
||||||
|
[toolchain]
|
||||||
|
channel = "stable"
|
||||||
|
components = [ "rust-src" ]
|
||||||
|
targets = [ "thumbv6m-none-eabi" ]
|
|
@ -0,0 +1,20 @@
|
||||||
|
# Use nixpkgs with oxalica rust-bin overlay
|
||||||
|
let
|
||||||
|
rust_overlay = import (builtins.fetchTarball
|
||||||
|
"https://github.com/oxalica/rust-overlay/archive/master.tar.gz");
|
||||||
|
nixpkgs = import <nixpkgs> { overlays = [ rust_overlay ]; };
|
||||||
|
rust_channel = nixpkgs.rust-bin.fromRustupToolchainFile ./rust-toolchain;
|
||||||
|
in
|
||||||
|
# Avoid typing `nixpkgs.` before each package name
|
||||||
|
with nixpkgs;
|
||||||
|
|
||||||
|
# Define the shell
|
||||||
|
pkgs.mkShell {
|
||||||
|
buildInputs = [
|
||||||
|
dfu-util
|
||||||
|
];
|
||||||
|
|
||||||
|
nativeBuildInputs = [
|
||||||
|
rust_channel # Full rust from overlay, includes cargo
|
||||||
|
];
|
||||||
|
}
|
Loading…
Reference in New Issue