co2_sensing/flake.nix

34 lines
847 B
Nix
Raw Normal View History

2024-05-16 22:09:53 +00:00
{
description = "test";
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 = [
probe-rs
2024-05-16 22:58:23 +00:00
flip-link
2024-05-16 22:09:53 +00:00
(rust-bin.fromRustupToolchainFile ./rust-toolchain.toml)
];
shellHook = ''
2024-05-16 22:58:23 +00:00
source .nix-shell-history-hook.sh
2024-05-16 22:09:53 +00:00
alias flash="cargo flash --chip RP2040"
'';
};
}
);
}