13 rustPlatform.buildRustPackage rec {
18 inherit pname version;
19 hash = "sha256-6WNXsRvbldEjAykMn1DCiuKctBrsTHGv1fJuRXBblu0=";
22 cargoHash = "sha256-5kJ0MK0rUzyJvLZH/3nje+gTAM6et0mNE3sxVoK1L5s=";
24 nativeBuildInputs = [ pkg-config ];
31 updateScript = nix-update-script { };
32 tests.version = testers.testVersion {
38 description = "A command-line implementation of WCHISPTool, for flashing ch32 MCUs";
39 homepage = "https://ch32-rs.github.io/wchisp/";
40 changelog = "https://github.com/ch32-rs/wchisp/releases/tag/v${version}";
41 license = with licenses; [ gpl2Only ];
42 platforms = with platforms; linux ++ darwin ++ windows;
43 broken = !stdenv.hostPlatform.isLinux;
44 maintainers = with maintainers; [ jwillikers ];
45 mainProgram = "wchisp";