mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-09-29 07:32:58 +00:00
Merge pull request #295963 from xokdvium/xokdvium/ch341eeprom-init
ch341eeprom: init at 0-unstable-2021-01-05
This commit is contained in:
commit
4e06413537
@ -21299,6 +21299,12 @@
|
|||||||
githubId = 3028542;
|
githubId = 3028542;
|
||||||
name = "Guillermo NWDD";
|
name = "Guillermo NWDD";
|
||||||
};
|
};
|
||||||
|
xokdvium = {
|
||||||
|
email = "xokdvium@proton.me";
|
||||||
|
github = "xokdvium";
|
||||||
|
githubId = 145775305;
|
||||||
|
name = "Sergei Zimmerman";
|
||||||
|
};
|
||||||
xrelkd = {
|
xrelkd = {
|
||||||
github = "xrelkd";
|
github = "xrelkd";
|
||||||
githubId = 46590321;
|
githubId = 46590321;
|
||||||
|
40
pkgs/by-name/ch/ch341eeprom/package.nix
Normal file
40
pkgs/by-name/ch/ch341eeprom/package.nix
Normal file
@ -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 ];
|
||||||
|
};
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user