depot/third_party/nixpkgs/pkgs/development/embedded/wch-isp/default.nix
Default email 5e7c2d6cef Project import generated by Copybara.
GitOrigin-RevId: f99e5f03cc0aa231ab5950a15ed02afec45ed51a
2023-10-09 21:29:22 +02:00

27 lines
734 B
Nix

{ lib, stdenv, fetchFromGitHub, pkg-config, libusb1 }:
stdenv.mkDerivation rec {
pname = "wch-isp";
version = "0.3.0";
src = fetchFromGitHub {
owner = "jmaselbas";
repo = pname;
rev = "v${version}";
hash = "sha256-cbQJgHZAdSfzRsf/srMlRd+QgGUPpP5r3kBTNCgINDw=";
};
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;
};
}