1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-17 19:21:04 +00:00

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.
This commit is contained in:
Sergei Zimmerman 2024-05-25 17:28:23 +03:00
parent 5c7f10455c
commit 34a197ee29

View file

@ -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;
};
}