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

23 lines
566 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
rustup
];
};
});
};
}