Unverified Commit d9335df3 authored by misuzu's avatar misuzu Committed by GitHub
Browse files

[Backport release-25.05] bootloadhid: init at 0-unstable-2012-12-08 (#410149)

parents acdf0eb9 5739aebd
Loading
Loading
Loading
Loading
+6 −0
Original line number Diff line number Diff line
@@ -24581,6 +24581,12 @@
    githubId = 6579555;
    name = "Jeroen Jetten";
  };
  thetaoofsu = {
    email = "TheTaoOfSu@protonmail.com";
    github = "TheTaoOfSu";
    githubId = 45526311;
    name = "TheTaoOfSu";
  };
  theuni = {
    email = "ct@flyingcircus.io";
    github = "ctheune";
+43 −0
Original line number Diff line number Diff line
{
  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;
  };
}