Skip to content

Commit 30979b8

Browse files
authored
Merge pull request #47 from Detegr/nix-flake
2 parents 3aef8f4 + f2accb0 commit 30979b8

2 files changed

Lines changed: 122 additions & 0 deletions

File tree

flake.lock

Lines changed: 92 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

flake.nix

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
{
2+
description = "Neotron Pico BIOS";
3+
4+
inputs = {
5+
flake-utils.url = "github:numtide/flake-utils";
6+
rust-overlay.url = "github:oxalica/rust-overlay";
7+
};
8+
9+
outputs = { self, nixpkgs, flake-utils, rust-overlay }:
10+
flake-utils.lib.eachDefaultSystem
11+
(system:
12+
let
13+
pkgs = (import nixpkgs) {
14+
inherit system;
15+
overlays = [ (import rust-overlay) ];
16+
};
17+
toolchain = pkgs.pkgsBuildHost.rust-bin.stable.latest.default.override {
18+
targets = [ "thumbv6m-none-eabi" ];
19+
};
20+
in
21+
{
22+
devShell = pkgs.mkShell {
23+
nativeBuildInputs = [
24+
pkgs.probe-run
25+
toolchain
26+
];
27+
};
28+
}
29+
);
30+
}

0 commit comments

Comments
 (0)