-
Notifications
You must be signed in to change notification settings - Fork 0
/
flake.nix
33 lines (33 loc) · 1.06 KB
/
flake.nix
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
{
description = "A very basic flake";
inputs = {
nixpkgs.url = "github:nixos/nixpkgs/master";
flake-utils.url = "github:numtide/flake-utils/master";
rust-overlay.url = "github:oxalica/rust-overlay/master";
rust-overlay.inputs.nixpkgs.follows = "nixpkgs";
rust-overlay.inputs.flake-utils.follows = "flake-utils";
};
outputs = { self, nixpkgs, rust-overlay, flake-utils }:
flake-utils.lib.eachDefaultSystem (system:
let
overlays = [ rust-overlay.overlay ];
pkgs = import nixpkgs { inherit system overlays; };
my-rust = pkgs.rust-bin.nightly.latest.default.override {
extensions = [ "rust-src" "llvm-tools-preview" ];
targets = [ "thumbv7m-none-eabi" "x86_64-unknown-linux-gnu" ];
};
in {
devShell = pkgs.mkShell {
buildInputs = with pkgs; [
my-rust
cargo-watch
cargo-bloat
cargo-binutils
gdb-multitarget
openocd
libusb1
pkg-config
];
};
});
}