Skip to content

Latest commit

 

History

History
65 lines (54 loc) · 1.67 KB

README.md

File metadata and controls

65 lines (54 loc) · 1.67 KB

rust-overlay-esp

.github/workflows/ci.yml

Usage

CLI

nix shell github:opeik/rust-overlay-esp then cry and buy an Raspberry Pi Pico.

Flake

# Nix flake, see: https://nixos.org/manual/nix/stable/command-ref/new-cli/nix3-flake
{
  inputs = {
    nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
    flake-utils.url = "github:numtide/flake-utils";
    rust-overlay-esp = {
      url = "github:opeik/rust-overlay-esp";
      inputs.nixpkgs.follows = "nixpkgs";
      inputs.flake-utils.follows = "flake-utils";
    };
  };

  outputs = {
    self,
    nixpkgs,
    flake-utils,
    rust-overlay-esp,
    ...
  }:
    flake-utils.lib.eachDefaultSystem (
      system: let
        pkgs = import nixpkgs {
          inherit system;
        };
      in {
        # `nix develop`
        devShell = pkgs.mkShell {
          buildInputs = with pkgs; [
            # Rust toolchain
            rust-overlay-esp.packages.${system}.rust-bin-esp
            (lib.optional stdenv.isDarwin [libiconv])
          ];
        };
      }
    );
}

License

Licensed under either of

at your option.

Contribution

Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.