blob: d98a23ce910cebfbc745463a8411c7c855d32173 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
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 ];
};
}
|