From 34a197ee29db70b8e7febb3fce99e6c767ca38ae Mon Sep 17 00:00:00 2001 From: Sergei Zimmerman Date: Sat, 25 May 2024 17:28:23 +0300 Subject: [PATCH] ch341eeprom: 0-unstable-2021-01-05 -> 0-unstable-2024-05-06 Added passthru.updateScript. Reformatted with `nixfmt-rfc-style`. Removed `with lib;` usage. Sorted meta attributes lexicographically. --- pkgs/by-name/ch/ch341eeprom/package.nix | 34 ++++++++++++++----------- 1 file changed, 19 insertions(+), 15 deletions(-) diff --git a/pkgs/by-name/ch/ch341eeprom/package.nix b/pkgs/by-name/ch/ch341eeprom/package.nix index 1c4661398e54..b5e8c6f5e2ca 100644 --- a/pkgs/by-name/ch/ch341eeprom/package.nix +++ b/pkgs/by-name/ch/ch341eeprom/package.nix @@ -1,25 +1,25 @@ -{ lib -, stdenv -, fetchFromGitHub -, libusb1 -, +{ + lib, + stdenv, + fetchFromGitHub, + libusb1, + unstableGitUpdater, }: + stdenv.mkDerivation { pname = "ch341eeprom"; - version = "0-unstable-2021-01-05"; + version = "0-unstable-2024-05-06"; src = fetchFromGitHub { owner = "command-tab"; repo = "ch341eeprom"; - rev = "d5b2fba35a33a1cddd7a3e920e1df933f21ba9b0"; - hash = "sha256-QUl5ErOfEfDhk1fF+BNu6n0Bake3IagNfn4I43b6Uns="; + rev = "7cffbef7552d93162bd90cae836a45e94acb93fb"; + hash = "sha256-8pvQ2hBP3Rf8+MWsmMY53BghFiC5/b9k8vUjU2K6Ib4="; }; buildInputs = [ libusb1 ]; - makeFlags = [ - "CC=${stdenv.cc.targetPrefix}cc" - ]; + makeFlags = [ "CC=${stdenv.cc.targetPrefix}cc" ]; installPhase = '' runHook preInstall @@ -27,12 +27,16 @@ stdenv.mkDerivation { 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"; homepage = "https://github.com/command-tab/ch341eeprom"; - license = licenses.gpl3Plus; - platforms = platforms.darwin ++ platforms.linux; + license = lib.licenses.gpl3Plus; mainProgram = "ch341eeprom"; - maintainers = with maintainers; [ xokdvium ]; + maintainers = with lib.maintainers; [ xokdvium ]; + platforms = with lib.platforms; darwin ++ linux; }; }