about summary refs log tree commit diff
path: root/pkgs/by-name/ch
diff options
context:
space:
mode:
authorSergei Zimmerman <serjtsimmerman@gmail.com>2024-05-25 17:28:23 +0300
committerSergei Zimmerman <serjtsimmerman@gmail.com>2024-05-25 17:32:47 +0300
commit34a197ee29db70b8e7febb3fce99e6c767ca38ae (patch)
tree821aa9d5906e160b13ab86be27276933ec1eb303 /pkgs/by-name/ch
parent5c7f10455c1c81e4527f709be63b18492df20a02 (diff)
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.
Diffstat (limited to 'pkgs/by-name/ch')
-rw-r--r--pkgs/by-name/ch/ch341eeprom/package.nix34
1 files changed, 19 insertions, 15 deletions
diff --git a/pkgs/by-name/ch/ch341eeprom/package.nix b/pkgs/by-name/ch/ch341eeprom/package.nix
index 1c4661398e54a..b5e8c6f5e2ca6 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;
   };
 }