diff options
author | a-n-n-a-l-e-e <150648636+a-n-n-a-l-e-e@users.noreply.github.com> | 2024-03-23 08:54:12 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-03-23 08:54:12 -0700 |
commit | 4e06413537f08e0203ee5f8f78f849878fe28904 (patch) | |
tree | 2aaf4d0055b12290bfee9dba1cb3c06370bb1898 | |
parent | f8e9996d4613d135413ab23cf96b0531648b45c3 (diff) | |
parent | 97ac7798e959658ac5ffc4dd08da41e302b78409 (diff) | |
download | nixlib-4e06413537f08e0203ee5f8f78f849878fe28904.tar nixlib-4e06413537f08e0203ee5f8f78f849878fe28904.tar.gz nixlib-4e06413537f08e0203ee5f8f78f849878fe28904.tar.bz2 nixlib-4e06413537f08e0203ee5f8f78f849878fe28904.tar.lz nixlib-4e06413537f08e0203ee5f8f78f849878fe28904.tar.xz nixlib-4e06413537f08e0203ee5f8f78f849878fe28904.tar.zst nixlib-4e06413537f08e0203ee5f8f78f849878fe28904.zip |
Merge pull request #295963 from xokdvium/xokdvium/ch341eeprom-init
ch341eeprom: init at 0-unstable-2021-01-05
-rw-r--r-- | maintainers/maintainer-list.nix | 6 | ||||
-rw-r--r-- | pkgs/by-name/ch/ch341eeprom/package.nix | 40 |
2 files changed, 46 insertions, 0 deletions
diff --git a/maintainers/maintainer-list.nix b/maintainers/maintainer-list.nix index fdf3e6057106..1db50f76c3ce 100644 --- a/maintainers/maintainer-list.nix +++ b/maintainers/maintainer-list.nix @@ -21299,6 +21299,12 @@ githubId = 3028542; name = "Guillermo NWDD"; }; + xokdvium = { + email = "xokdvium@proton.me"; + github = "xokdvium"; + githubId = 145775305; + name = "Sergei Zimmerman"; + }; xrelkd = { github = "xrelkd"; githubId = 46590321; diff --git a/pkgs/by-name/ch/ch341eeprom/package.nix b/pkgs/by-name/ch/ch341eeprom/package.nix new file mode 100644 index 000000000000..d98a23ce910c --- /dev/null +++ b/pkgs/by-name/ch/ch341eeprom/package.nix @@ -0,0 +1,40 @@ +{ lib +, stdenv +, fetchFromGitHub +, libusb1 +, +}: +stdenv.mkDerivation { + pname = "ch341eeprom"; + version = "0-unstable-2021-01-05"; + + src = fetchFromGitHub { + owner = "command-tab"; + repo = "ch341eeprom"; + rev = "d5b2fba35a33a1cddd7a3e920e1df933f21ba9b0"; + hash = "sha256-QUl5ErOfEfDhk1fF+BNu6n0Bake3IagNfn4I43b6Uns="; + }; + + buildInputs = [ libusb1 ]; + + dontConfigure = true; + + makeFlags = [ + "CC=${stdenv.cc.targetPrefix}cc" + ]; + + installPhase = '' + runHook preInstall + install -Dm755 -T ch341eeprom $out/bin/ch341eeprom + runHook postInstall + ''; + + meta = with lib; { + description = "A libusb based programming tool for 24Cxx serial EEPROMs using the WinChipHead CH341A IC"; + homepage = "https://github.com/command-tab/ch341eeprom"; + license = licenses.gpl3; + platforms = platforms.darwin ++ platforms.linux; + mainProgram = "ch341eeprom"; + maintainers = with maintainers; [ xokdvium ]; + }; +} |