forked from rp-rs/rp2040-project-template
-
Notifications
You must be signed in to change notification settings - Fork 2
/
flake.nix
31 lines (30 loc) · 842 Bytes
/
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
{
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs";
rust-overlay.url = "github:oxalica/rust-overlay";
};
outputs = { self, rust-overlay, nixpkgs }:
let
overlays = [ (import rust-overlay) ];
pkgs = import nixpkgs {
system = "x86_64-linux";
inherit overlays;
};
in
{
packages.x86_64-linux.elf2uf2-rs = pkgs.callPackage ./elf2uf2.nix { };
devShell.x86_64-linux = pkgs.mkShell {
buildInputs = [
(pkgs.rust-bin.selectLatestNightlyWith (toolchain: toolchain.default.override {
targets = [ "thumbv6m-none-eabi" ];
extensions = [ "rust-src" ];
}))
pkgs.rust-analyzer
pkgs.flip-link
pkgs.probe-rs
self.packages.x86_64-linux.elf2uf2-rs
pkgs.rustfmt
];
};
};
}