1 { lib, stdenv, fetchFromGitHub, pkg-config, libusb1 }:
3 stdenv.mkDerivation rec {
7 src = fetchFromGitHub {
11 hash = "sha256-cbQJgHZAdSfzRsf/srMlRd+QgGUPpP5r3kBTNCgINDw=";
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 license = lib.licenses.gpl2Only;
23 homepage = "https://github.com/jmaselbas/wch-isp";
24 maintainers = with lib.maintainers; [ lesuisse ];
25 platforms = lib.platforms.unix;