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.

35 lines
870 B
Nix
Raw Normal View History

{ lib
, stdenv
, rustPlatform
, fetchFromGitHub
, libusb1
, pkg-config
, rustfmt
2021-08-23 12:11:43 +00:00
, AppKit
}:
2020-08-24 11:07:33 +00:00
rustPlatform.buildRustPackage rec {
pname = "cargo-flash";
2022-07-15 04:49:37 +00:00
version = "0.13.0";
2020-08-24 11:07:33 +00:00
src = fetchFromGitHub {
owner = "probe-rs";
repo = pname;
rev = "v${version}";
2022-07-15 04:49:37 +00:00
sha256 = "sha256-O6T1Wul0nJaTVp9MEOj9FT+FUt4oYfqR5pGFaAxuK30=";
2020-08-24 11:07:33 +00:00
};
2022-07-15 04:49:37 +00:00
cargoSha256 = "sha256-E2gBkr50hjkzY+ZVgMm7tpdwr9yuyFh65Ht6FAPvxYg=";
2020-08-24 11:07:33 +00:00
nativeBuildInputs = [ pkg-config rustfmt ];
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/";
2021-11-25 15:48:49 +00:00
changelog = "https://github.com/probe-rs/cargo-flash/blob/v${version}/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
};
}