mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-26 00:43:20 +00:00
755b915a15
nix run nixpkgs#silver-searcher -- -G '\.nix$' -0l 'description.*"[Aa]n?' pkgs \ | xargs -0 nix run nixpkgs#gnused -- -i '' -Ee 's/(description.*")[Aa]n? (.)/\1\U\2/'
43 lines
1.0 KiB
Nix
43 lines
1.0 KiB
Nix
{
|
|
lib,
|
|
stdenv,
|
|
fetchFromGitHub,
|
|
libusb1,
|
|
unstableGitUpdater,
|
|
}:
|
|
|
|
stdenv.mkDerivation {
|
|
pname = "ch341eeprom";
|
|
version = "0-unstable-2024-05-06";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "command-tab";
|
|
repo = "ch341eeprom";
|
|
rev = "7cffbef7552d93162bd90cae836a45e94acb93fb";
|
|
hash = "sha256-8pvQ2hBP3Rf8+MWsmMY53BghFiC5/b9k8vUjU2K6Ib4=";
|
|
};
|
|
|
|
buildInputs = [ libusb1 ];
|
|
|
|
makeFlags = [ "CC=${stdenv.cc.targetPrefix}cc" ];
|
|
|
|
installPhase = ''
|
|
runHook preInstall
|
|
install -Dm755 -T ch341eeprom $out/bin/ch341eeprom
|
|
runHook postInstall
|
|
'';
|
|
|
|
passthru = {
|
|
updateScript = unstableGitUpdater { hardcodeZeroVersion = true; };
|
|
};
|
|
|
|
meta = {
|
|
description = "Libusb based programming tool for 24Cxx serial EEPROMs using the WinChipHead CH341A IC";
|
|
homepage = "https://github.com/command-tab/ch341eeprom";
|
|
license = lib.licenses.gpl3Plus;
|
|
mainProgram = "ch341eeprom";
|
|
maintainers = with lib.maintainers; [ xokdvium ];
|
|
platforms = with lib.platforms; darwin ++ linux;
|
|
};
|
|
}
|