Files
nixpkgs/pkgs/by-name/ca/cargo-hf2/package.nix
Dark Steveneq 646b892680
Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
push sheeet
2025-10-09 14:15:47 +02:00

32 lines
702 B
Nix

{
lib,
rustPlatform,
fetchCrate,
pkg-config,
libusb1,
}:
rustPlatform.buildRustPackage rec {
pname = "cargo-hf2";
version = "0.3.3";
src = fetchCrate {
inherit pname version;
hash = "sha256-0o3j7YfgNNnfbrv9Gppo24DqYlDCxhtsJHIhAV214DU=";
};
cargoHash = "sha256-cRliZegzRKmoGIE96pyVuNySA2L6l+imcTHbZBXXiz4=";
nativeBuildInputs = [ pkg-config ];
buildInputs = [ libusb1 ];
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 ];
};
}