Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
43 lines
968 B
Nix
43 lines
968 B
Nix
{
|
|
fetchurl,
|
|
lib,
|
|
libusb-compat-0_1,
|
|
stdenv,
|
|
}:
|
|
|
|
stdenv.mkDerivation {
|
|
pname = "bootloadhid";
|
|
version = "0-unstable-2012-12-08";
|
|
|
|
src = fetchurl {
|
|
url = "https://www.obdev.at/downloads/vusb/bootloadHID.2012-12-08.tar.gz";
|
|
hash = "sha256-FU5+OGKaOi7sLfZm7foe4vLppXAY8X2fD48GTMINh1Q=";
|
|
};
|
|
|
|
nativeBuildInputs = [
|
|
libusb-compat-0_1
|
|
];
|
|
|
|
makeFlags = [ "CC=${stdenv.cc.targetPrefix}cc" ];
|
|
|
|
setSourceRoot = "sourceRoot=$(echo */commandline)";
|
|
|
|
installPhase = ''
|
|
runHook preInstall
|
|
|
|
mkdir -p $out/bin
|
|
install bootloadHID $out/bin
|
|
|
|
runHook postInstall
|
|
'';
|
|
|
|
meta = {
|
|
description = "USB boot loader for AVR microcontrollers with at least 2 kB of boot load section, e.g. ATMega8";
|
|
homepage = "https://www.obdev.at/products/vusb/bootloadhid.html";
|
|
license = lib.licenses.gpl2Plus;
|
|
maintainers = with lib.maintainers; [ thetaoofsu ];
|
|
mainProgram = "bootloadHID";
|
|
platforms = lib.platforms.unix;
|
|
};
|
|
}
|