rp-pico-2-rust/flake.nix
2024-10-09 16:07:13 -05:00

26 lines
626 B
Nix

{
inputs.nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
outputs = {
self,
nixpkgs,
}: let
# inherit (self) outputs;
systems = ["aarch64-linux" "aarch64-darwin" "x86_64-darwin" "x86_64-linux"];
forSystems = nixpkgs.lib.genAttrs systems;
pkgsFor = system: (import nixpkgs {inherit system;});
genPkgs = func: (forSystems (system: func (pkgsFor system)));
in {
devShells = genPkgs (pkgs: {
default = pkgs.mkShell {
packages = with pkgs; [
picotool
elf2uf2-rs
probe-rs
rustup
flip-link
];
};
});
};
}