wch-isp: init at 0.2.4

https://github.com/jmaselbas/wch-isp

NixOS users can load the udev rule with
`services.udev.packages = [ wch-isp ];`
This commit is contained in:
Thomas Gerbet 2023-04-15 11:49:59 +02:00
parent e24c4f8cbb
commit c7f579c80e
2 changed files with 29 additions and 0 deletions

View File

@ -0,0 +1,27 @@
{ lib, stdenv, fetchFromGitHub, pkg-config, libusb1 }:
stdenv.mkDerivation rec {
pname = "wch-isp";
version = "0.2.4";
src = fetchFromGitHub {
owner = "jmaselbas";
repo = pname;
rev = "v${version}";
hash = "sha256-YjxzfDSZRMa7B+hNqtj87nRlRuQyr51VidZqHLddgwI=";
};
nativeBuildInputs = [ pkg-config ];
buildInputs = [ libusb1 ];
installFlags = [ "DESTDIR=$(out)" "PREFIX=" ];
installTargets = [ "install" "install-rules" ];
meta = {
description = "Firmware programmer for WCH microcontrollers over USB";
license = lib.licenses.gpl2Only;
homepage = "https://github.com/jmaselbas/wch-isp";
maintainers = with lib.maintainers; [ lesuisse ];
platforms = lib.platforms.unix;
};
}

View File

@ -19086,6 +19086,8 @@ with pkgs;
uisp = callPackage ../development/embedded/uisp { };
wch-isp = callPackage ../development/embedded/wch-isp { };
uncrustify = callPackage ../development/tools/misc/uncrustify { };
universal-ctags = callPackage ../development/tools/misc/universal-ctags { };