nixpkgs/pkgs/development/tools/rust/cargo-flash/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

33 lines
874 B
Nix
Raw Normal View History

{ lib
, stdenv
, rustPlatform
2023-01-28 18:29:55 +00:00
, fetchCrate
, libusb1
, pkg-config
2023-01-28 18:29:55 +00:00
, DarwinTools
2021-08-23 12:11:43 +00:00
, AppKit
}:
2020-08-24 11:07:33 +00:00
rustPlatform.buildRustPackage rec {
pname = "cargo-flash";
2023-01-29 22:19:01 +00:00
version = "0.16.0";
2020-08-24 11:07:33 +00:00
2023-01-28 18:29:55 +00:00
src = fetchCrate {
inherit pname version;
2023-01-29 22:19:01 +00:00
sha256 = "sha256-Zwb9jUZwkvuBzvACMwKwpAHEMkjLVDkXfDLo4ntG3+k=";
2020-08-24 11:07:33 +00:00
};
2023-01-29 22:19:01 +00:00
cargoSha256 = "sha256-giGSTMtGTIw4ZZglHqbW2sGKO/D/3TVQR5olTgitBjE=";
2020-08-24 11:07:33 +00:00
2023-01-28 18:29:55 +00:00
nativeBuildInputs = [ pkg-config ] ++ lib.optionals stdenv.isDarwin [ DarwinTools ];
2021-10-13 00:39:48 +00:00
buildInputs = [ libusb1 ] ++ lib.optionals stdenv.isDarwin [ AppKit ];
2020-08-24 11:07:33 +00:00
meta = with lib; {
description = "A cargo extension for working with microcontrollers";
homepage = "https://probe.rs/";
2023-01-28 18:29:55 +00:00
changelog = "https://github.com/probe-rs/probe-rs/blob/v${version}/cargo-flash/CHANGELOG.md";
2020-08-24 11:07:33 +00:00
license = with licenses; [ asl20 /* or */ mit ];
2022-07-15 04:49:37 +00:00
maintainers = with maintainers; [ fooker newam ];
2020-08-24 11:07:33 +00:00
};
}