diff options
author | Matthias Beyer <mail@beyermatthias.de> | 2022-09-08 08:45:08 +0200 |
---|---|---|
committer | Matthias Beyer <mail@beyermatthias.de> | 2022-09-08 08:45:08 +0200 |
commit | 6df841d06b806ce19cf06b668f202167f39717df (patch) | |
tree | e904bacd56b35b549a4765674fa7f591babc6ee4 | |
parent | 39547aedf4bc82767a9f6aa15c081a4b21ecc94c (diff) |
cargo-espflash: init at 1.6.0add-cargo-espflash
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
-rw-r--r-- | pkgs/development/tools/rust/cargo-espflash/default.nix | 30 | ||||
-rw-r--r-- | pkgs/top-level/all-packages.nix | 2 |
2 files changed, 32 insertions, 0 deletions
diff --git a/pkgs/development/tools/rust/cargo-espflash/default.nix b/pkgs/development/tools/rust/cargo-espflash/default.nix new file mode 100644 index 000000000000..cb2a5333e62b --- /dev/null +++ b/pkgs/development/tools/rust/cargo-espflash/default.nix @@ -0,0 +1,30 @@ +{ lib, rustPlatform, fetchFromGitHub, pkg-config, udev, stdenv }: + +rustPlatform.buildRustPackage rec { + pname = "cargo-espflash"; + version = "1.6.0"; + + src = fetchFromGitHub { + owner = "esp-rs"; + repo = "espflash"; + rev = "v${version}"; + sha256 = "sha256-YQ621YbdEy2sS4uEYvgnQU1G9iW5SpWNObPH4BfyeF0="; + }; + + nativeBuildInputs = [ + pkg-config + ]; + + buildInputs = [ + udev + ]; + + cargoSha256 = "sha256-mDSNjeaEtYpEGpiIg2F+e8x/XCssNQxUx+6Cj+8XX5Q="; + + meta = with lib; { + description = "Serial flasher utility for Espressif SoCs and modules based on esptool.py"; + homepage = "https://github.com/esp-rs/cargo-espflash"; + license = licenses.gpl2Only; + maintainers = with maintainers; [ matthiasbeyer ]; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index c6ff2f9b031c..e411cac3e047 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -14418,6 +14418,8 @@ with pkgs; buildRustCrateHelpers = callPackage ../build-support/rust/build-rust-crate/helpers.nix { }; cratesIO = callPackage ../build-support/rust/crates-io.nix { }; + cargo-espflash = callPackage ../development/tools/rust/cargo-espflash { }; + cargo-web = callPackage ../development/tools/rust/cargo-web { inherit (darwin.apple_sdk.frameworks) CoreServices Security; }; |