nixpkgs/pkgs/by-name/wl/wlink/package.nix

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

53 lines
1.1 KiB
Nix
Raw Normal View History

2024-10-03 07:51:59 -06:00
{
stdenv,
lib,
rustPlatform,
fetchCrate,
pkg-config,
libusb1,
udev,
nix-update-script,
testers,
wlink,
}:
rustPlatform.buildRustPackage rec {
pname = "wlink";
2024-11-12 02:25:59 -07:00
version = "0.1.0";
2024-10-03 07:51:59 -06:00
src = fetchCrate {
inherit pname version;
2024-11-12 02:25:59 -07:00
hash = "sha256-YiplnKcebDVEHoSP8XTPl0qXUwu2g32M864wbc3dyX8=";
2024-10-03 07:51:59 -06:00
};
2024-11-12 02:25:59 -07:00
cargoHash = "sha256-JZ10VhFbrjIOiKRrYltdcVnv315QasgmDWlMzUUmNhw=";
2024-10-03 07:51:59 -06:00
nativeBuildInputs = [ pkg-config ];
buildInputs = [
libusb1
udev
];
passthru = {
updateScript = nix-update-script { };
tests.version = testers.testVersion {
package = wlink;
};
};
2024-11-19 05:11:02 -07:00
meta = {
2024-10-03 07:51:59 -06:00
description = "WCH-Link flash tool for WCH's RISC-V MCUs(CH32V, CH56X, CH57X, CH58X, CH59X, CH32L103, CH32X035, CH641, CH643)";
homepage = "https://github.com/ch32-rs/wlink";
changelog = "https://github.com/ch32-rs/wlink/releases/tag/v${version}";
2024-11-19 05:11:02 -07:00
license = with lib.licenses; [
2024-10-03 07:51:59 -06:00
mit # or
asl20
];
2024-11-19 05:11:02 -07:00
platforms = with lib.platforms; linux ++ darwin ++ windows;
2024-10-03 07:51:59 -06:00
broken = !stdenv.hostPlatform.isLinux;
2024-11-19 05:11:02 -07:00
maintainers = with lib.maintainers; [ jwillikers ];
2024-10-03 07:51:59 -06:00
mainProgram = "wlink";
};
}