at 24.11-pre 28 lines 770 B view raw
1{ lib, stdenv, fetchFromSourcehut, pkg-config, libusb1 }: 2 3stdenv.mkDerivation rec { 4 pname = "wch-isp"; 5 version = "0.4.1"; 6 7 src = fetchFromSourcehut { 8 owner = "~jmaselbas"; 9 repo = pname; 10 rev = "v${version}"; 11 hash = "sha256-JB7cvZPzRhYJ8T3QJkguHOzZFrLOft5rRz0F0sVav/k="; 12 }; 13 14 nativeBuildInputs = [ pkg-config ]; 15 buildInputs = [ libusb1 ]; 16 17 installFlags = [ "DESTDIR=$(out)" "PREFIX=" ]; 18 installTargets = [ "install" "install-rules" ]; 19 20 meta = { 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; 27 }; 28}