1 { lib, stdenv, fetchFromSourcehut, pkg-config, libusb1 }:
3 stdenv.mkDerivation rec {
7 src = fetchFromSourcehut {
11 hash = "sha256-JB7cvZPzRhYJ8T3QJkguHOzZFrLOft5rRz0F0sVav/k=";
14 nativeBuildInputs = [ pkg-config ];
15 buildInputs = [ libusb1 ];
17 installFlags = [ "DESTDIR=$(out)" "PREFIX=" ];
18 installTargets = [ "install" "install-rules" ];
21 description = "Firmware programmer for WCH microcontrollers over USB";
22 mainProgram = "wch-isp";
23 license = lib.licenses.gpl2Only;
24 homepage = "https://git.sr.ht/~jmaselbas/wch-isp";
25 maintainers = with lib.maintainers; [ lesuisse ];
26 platforms = lib.platforms.unix;