From c81b99951d81d3a3673a865a2904ce40b73aa00a Mon Sep 17 00:00:00 2001 From: Dan Nixon Date: Sun, 17 Mar 2024 13:51:53 +0000 Subject: [PATCH] cargo-pio: init at 0.25.6 --- pkgs/by-name/ca/cargo-pio/package.nix | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 pkgs/by-name/ca/cargo-pio/package.nix diff --git a/pkgs/by-name/ca/cargo-pio/package.nix b/pkgs/by-name/ca/cargo-pio/package.nix new file mode 100644 index 0000000000000..5942627f4aec0 --- /dev/null +++ b/pkgs/by-name/ca/cargo-pio/package.nix @@ -0,0 +1,27 @@ +{ lib +, fetchFromGitHub +, rustPlatform +}: +rustPlatform.buildRustPackage rec { + pname = "cargo-pio"; + version = "0.25.6"; + + src = fetchFromGitHub { + owner = "esp-rs"; + repo = "embuild"; + rev = "cargo-pio-v${version}"; + hash = "sha256-YH2CPb3uBlPncd+KkP25xhCVvDB7HDxJuSqWOJ1LT3k="; + }; + + cargoHash = "sha256-41ZDe7yP4C9JcX5trcDxcqdgZ+SnhDIIq51hM0Viv9w="; + + buildAndTestSubdir = "cargo-pio"; + + meta = with lib; { + description = "Build Rust embedded projects with PlatformIO"; + homepage = "https://github.com/esp-rs/embuild/tree/master/cargo-pio"; + license = with lib.licenses; [ asl20 mit ]; + maintainers = with maintainers; [ dannixon ]; + mainProgram = "cargo-pio"; + }; +}