2024-11-17 09:27:30 +00:00
|
|
|
{
|
|
|
|
inputs = {
|
|
|
|
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
|
|
|
|
flake-utils.url = "github:numtide/flake-utils";
|
|
|
|
fenix.url = "github:nix-community/fenix";
|
|
|
|
};
|
|
|
|
|
|
|
|
outputs =
|
|
|
|
{
|
|
|
|
nixpkgs,
|
|
|
|
fenix,
|
|
|
|
flake-utils,
|
|
|
|
...
|
|
|
|
}:
|
|
|
|
flake-utils.lib.eachDefaultSystem (
|
|
|
|
system:
|
|
|
|
let
|
|
|
|
pkgs = import nixpkgs { inherit system; };
|
|
|
|
fx = fenix.packages.${system};
|
|
|
|
rust = fx.combine [
|
|
|
|
fx.stable.toolchain
|
|
|
|
fx.targets.thumbv6m-none-eabi.stable.rust-std
|
|
|
|
];
|
|
|
|
buildInputs = [
|
|
|
|
rust
|
|
|
|
pkgs.cargo-deny
|
|
|
|
pkgs.rust-analyzer
|
|
|
|
pkgs.probe-rs
|
2024-11-18 06:57:13 +00:00
|
|
|
pkgs.mosquitto
|
2024-11-17 09:27:30 +00:00
|
|
|
];
|
|
|
|
in
|
|
|
|
{
|
|
|
|
devShells.default = pkgs.mkShell {
|
|
|
|
buildInputs = buildInputs;
|
|
|
|
};
|
|
|
|
}
|
|
|
|
);
|
|
|
|
}
|