mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-26 23:54:01 +00:00
c7f579c80e
https://github.com/jmaselbas/wch-isp NixOS users can load the udev rule with `services.udev.packages = [ wch-isp ];`
28 lines
734 B
Nix
28 lines
734 B
Nix
{ 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;
|
|
};
|
|
}
|