Merge pull request #295963 from xokdvium/xokdvium/ch341eeprom-init

ch341eeprom: init at 0-unstable-2021-01-05

authored by a-n-n-a-l-e-e and committed by GitHub 4e064135 f8e9996d

+46
+6
maintainers/maintainer-list.nix
··· 21299 21299 githubId = 3028542; 21300 21300 name = "Guillermo NWDD"; 21301 21301 }; 21302 + xokdvium = { 21303 + email = "xokdvium@proton.me"; 21304 + github = "xokdvium"; 21305 + githubId = 145775305; 21306 + name = "Sergei Zimmerman"; 21307 + }; 21302 21308 xrelkd = { 21303 21309 github = "xrelkd"; 21304 21310 githubId = 46590321;
+40
pkgs/by-name/ch/ch341eeprom/package.nix
··· 1 + { lib 2 + , stdenv 3 + , fetchFromGitHub 4 + , libusb1 5 + , 6 + }: 7 + stdenv.mkDerivation { 8 + pname = "ch341eeprom"; 9 + version = "0-unstable-2021-01-05"; 10 + 11 + src = fetchFromGitHub { 12 + owner = "command-tab"; 13 + repo = "ch341eeprom"; 14 + rev = "d5b2fba35a33a1cddd7a3e920e1df933f21ba9b0"; 15 + hash = "sha256-QUl5ErOfEfDhk1fF+BNu6n0Bake3IagNfn4I43b6Uns="; 16 + }; 17 + 18 + buildInputs = [ libusb1 ]; 19 + 20 + dontConfigure = true; 21 + 22 + makeFlags = [ 23 + "CC=${stdenv.cc.targetPrefix}cc" 24 + ]; 25 + 26 + installPhase = '' 27 + runHook preInstall 28 + install -Dm755 -T ch341eeprom $out/bin/ch341eeprom 29 + runHook postInstall 30 + ''; 31 + 32 + meta = with lib; { 33 + description = "A libusb based programming tool for 24Cxx serial EEPROMs using the WinChipHead CH341A IC"; 34 + homepage = "https://github.com/command-tab/ch341eeprom"; 35 + license = licenses.gpl3; 36 + platforms = platforms.darwin ++ platforms.linux; 37 + mainProgram = "ch341eeprom"; 38 + maintainers = with maintainers; [ xokdvium ]; 39 + }; 40 + }