13 rustPlatform.buildRustPackage rec {
18 inherit pname version;
19 hash = "sha256-YxozhEJh/KBirlA6ymIEbJY3r7wYSeTL40W2xQLyue0=";
22 useFetchCargoVendor = true;
23 cargoHash = "sha256-Hv+W8yFw6zAKwrV6gf9fWOkR/LFNgAD7WwQsHBqTnPI=";
25 nativeBuildInputs = [ pkg-config ];
32 doInstallCheck = true;
33 nativeInstallCheckInputs = [ versionCheckHook ];
36 updateScript = nix-update-script { };
40 description = "WCH-Link flash tool for WCH's RISC-V MCUs(CH32V, CH56X, CH57X, CH58X, CH59X, CH32L103, CH32X035, CH641, CH643)";
41 homepage = "https://github.com/ch32-rs/wlink";
42 changelog = "https://github.com/ch32-rs/wlink/releases/tag/v${version}";
43 license = with lib.licenses; [
47 platforms = with lib.platforms; linux ++ darwin ++ windows;
48 broken = !stdenv.hostPlatform.isLinux;
49 maintainers = with lib.maintainers; [ jwillikers ];
50 mainProgram = "wlink";