dput-ng: fix eval (#364540)
[NixPkgs.git] / pkgs / by-name / ca / cargo-pio / package.nix
blobc5cc84ad31ec8ea3446825552be116cb01db0006
2   lib,
3   fetchFromGitHub,
4   rustPlatform,
5 }:
6 rustPlatform.buildRustPackage rec {
7   pname = "cargo-pio";
8   version = "0.25.6";
10   src = fetchFromGitHub {
11     owner = "esp-rs";
12     repo = "embuild";
13     rev = "cargo-pio-v${version}";
14     hash = "sha256-YH2CPb3uBlPncd+KkP25xhCVvDB7HDxJuSqWOJ1LT3k=";
15   };
17   cargoHash = "sha256-41ZDe7yP4C9JcX5trcDxcqdgZ+SnhDIIq51hM0Viv9w=";
19   buildAndTestSubdir = "cargo-pio";
21   meta = with lib; {
22     description = "Build Rust embedded projects with PlatformIO";
23     homepage = "https://github.com/esp-rs/embuild/tree/master/cargo-pio";
24     license = with lib.licenses; [
25       asl20
26       mit
27     ];
28     maintainers = with maintainers; [ dannixon ];
29     mainProgram = "cargo-pio";
30   };