You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
26 lines
754 B
26 lines
754 B
2 years ago
|
{
|
||
|
inputs = {
|
||
|
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
|
||
|
rust-overlay.url = "github:oxalica/rust-overlay";
|
||
|
flake-utils.url = "github:numtide/flake-utils";
|
||
|
};
|
||
|
|
||
|
outputs = { self, nixpkgs, rust-overlay, flake-utils, ... }:
|
||
|
flake-utils.lib.eachDefaultSystem (system:
|
||
|
let
|
||
|
overlays = [ (import rust-overlay) ];
|
||
|
pkgs = import nixpkgs { inherit system overlays; };
|
||
|
in
|
||
|
with pkgs; {
|
||
|
devShells.default = mkShell {
|
||
|
buildInputs = [
|
||
|
(rust-bin.selectLatestNightlyWith (toolchain:
|
||
|
toolchain.default.override {
|
||
|
extensions = [ "rust-src" ];
|
||
|
targets = [ "thumbv6m-none-eabi" ];
|
||
|
}))
|
||
|
];
|
||
|
};
|
||
|
});
|
||
|
}
|