10 pname = "ch341eeprom";
11 version = "0-unstable-2024-05-06";
13 src = fetchFromGitHub {
14 owner = "command-tab";
16 rev = "7cffbef7552d93162bd90cae836a45e94acb93fb";
17 hash = "sha256-8pvQ2hBP3Rf8+MWsmMY53BghFiC5/b9k8vUjU2K6Ib4=";
20 buildInputs = [ libusb1 ];
22 makeFlags = [ "CC=${stdenv.cc.targetPrefix}cc" ];
26 install -Dm755 -T ch341eeprom $out/bin/ch341eeprom
31 updateScript = unstableGitUpdater { hardcodeZeroVersion = true; };
35 description = "Libusb based programming tool for 24Cxx serial EEPROMs using the WinChipHead CH341A IC";
36 homepage = "https://github.com/command-tab/ch341eeprom";
37 license = lib.licenses.gpl3Plus;
38 mainProgram = "ch341eeprom";
39 maintainers = with lib.maintainers; [ xokdvium ];
40 platforms = with lib.platforms; darwin ++ linux;