Merge pull request #314616 from xokdvium/xokdvium/ch341eeprom-bump

ch341eeprom: 0-unstable-2021-01-05 -> 0-unstable-2024-05-06
This commit is contained in:
Peder Bergebakken Sundt 2024-05-28 01:40:58 +02:00 committed by GitHub
commit 4f7ab34bfe
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -1,25 +1,25 @@
{ lib {
, stdenv lib,
, fetchFromGitHub stdenv,
, libusb1 fetchFromGitHub,
, libusb1,
unstableGitUpdater,
}: }:
stdenv.mkDerivation { stdenv.mkDerivation {
pname = "ch341eeprom"; pname = "ch341eeprom";
version = "0-unstable-2021-01-05"; version = "0-unstable-2024-05-06";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "command-tab"; owner = "command-tab";
repo = "ch341eeprom"; repo = "ch341eeprom";
rev = "d5b2fba35a33a1cddd7a3e920e1df933f21ba9b0"; rev = "7cffbef7552d93162bd90cae836a45e94acb93fb";
hash = "sha256-QUl5ErOfEfDhk1fF+BNu6n0Bake3IagNfn4I43b6Uns="; hash = "sha256-8pvQ2hBP3Rf8+MWsmMY53BghFiC5/b9k8vUjU2K6Ib4=";
}; };
buildInputs = [ libusb1 ]; buildInputs = [ libusb1 ];
makeFlags = [ makeFlags = [ "CC=${stdenv.cc.targetPrefix}cc" ];
"CC=${stdenv.cc.targetPrefix}cc"
];
installPhase = '' installPhase = ''
runHook preInstall runHook preInstall
@ -27,12 +27,16 @@ stdenv.mkDerivation {
runHook postInstall runHook postInstall
''; '';
meta = with lib; { passthru = {
updateScript = unstableGitUpdater { hardcodeZeroVersion = true; };
};
meta = {
description = "A libusb based programming tool for 24Cxx serial EEPROMs using the WinChipHead CH341A IC"; description = "A libusb based programming tool for 24Cxx serial EEPROMs using the WinChipHead CH341A IC";
homepage = "https://github.com/command-tab/ch341eeprom"; homepage = "https://github.com/command-tab/ch341eeprom";
license = licenses.gpl3Plus; license = lib.licenses.gpl3Plus;
platforms = platforms.darwin ++ platforms.linux;
mainProgram = "ch341eeprom"; mainProgram = "ch341eeprom";
maintainers = with maintainers; [ xokdvium ]; maintainers = with lib.maintainers; [ xokdvium ];
platforms = with lib.platforms; darwin ++ linux;
}; };
} }