blob: b49f7904812f1b4c12301b1583faa0acf3605581 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
|
{ lib
, rustPlatform
, fetchCrate
, pkg-config
, libusb1
, stdenv
, AppKit
}:
rustPlatform.buildRustPackage rec {
pname = "cargo-hf2";
version = "0.3.3";
src = fetchCrate {
inherit pname version;
sha256 = "sha256-0o3j7YfgNNnfbrv9Gppo24DqYlDCxhtsJHIhAV214DU=";
};
cargoSha256 = "sha256-zBxvpQfB9xw8+Rc1H1EaK/gQZtQ+uSs4YJwhm2o0vhI=";
nativeBuildInputs = [ pkg-config ];
buildInputs = [ libusb1 ] ++ lib.optionals stdenv.isDarwin [ AppKit ];
meta = with lib; {
description = "Cargo Subcommand for Microsoft HID Flashing Library for UF2 Bootloaders ";
mainProgram = "cargo-hf2";
homepage = "https://lib.rs/crates/cargo-hf2";
license = with licenses; [ mit ];
maintainers = with maintainers; [ astrobeastie ];
};
}
|