depot/third_party/nixpkgs/pkgs/by-name/ca/cargo-pio/package.nix
Default email 657f08b14c Project import generated by Copybara.
GitOrigin-RevId: 807e9154dcb16384b1b765ebe9cd2bba2ac287fd
2024-10-29 11:11:06 +00:00

27 lines
705 B
Nix

{ 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";
};
}