2021-01-23 19:26:19 +07:00
|
|
|
{ lib, stdenv, fetchurl, libusb-compat-0_1 }:
|
2014-03-07 13:28:19 +01:00
|
|
|
let
|
2015-02-26 18:20:40 +01:00
|
|
|
version = "0.7.2";
|
2014-03-07 13:28:19 +01:00
|
|
|
in
|
|
|
|
stdenv.mkDerivation rec {
|
2019-08-13 21:52:01 +00:00
|
|
|
pname = "dfu-programmer";
|
|
|
|
inherit version;
|
2014-03-07 13:28:19 +01:00
|
|
|
|
2020-04-28 05:29:39 +02:00
|
|
|
buildInputs = [ libusb-compat-0_1 ];
|
2014-03-07 13:28:19 +01:00
|
|
|
|
|
|
|
src = fetchurl {
|
2019-08-13 21:52:01 +00:00
|
|
|
url = "mirror://sourceforge/dfu-programmer/${pname}-${version}.tar.gz";
|
2015-02-26 18:20:40 +01:00
|
|
|
sha256 = "15gr99y1z9vbvhrkd25zqhnzhg6zjmaam3vfjzf2mazd39mx7d0x";
|
2014-03-07 13:28:19 +01:00
|
|
|
};
|
|
|
|
|
2014-08-12 13:42:10 +02:00
|
|
|
configureFlags = [ "--disable-libusb_1_0" ];
|
2014-03-07 13:28:19 +01:00
|
|
|
|
2021-01-23 19:26:19 +07:00
|
|
|
meta = with lib; {
|
2014-03-07 13:28:19 +01:00
|
|
|
license = licenses.gpl2;
|
2014-11-11 14:20:43 +01:00
|
|
|
description = "A Device Firmware Update based USB programmer for Atmel chips with a USB bootloader";
|
2020-03-31 21:11:51 -04:00
|
|
|
homepage = "http://dfu-programmer.sourceforge.net/";
|
2018-10-17 12:55:06 -05:00
|
|
|
platforms = platforms.unix;
|
2014-03-07 13:28:19 +01:00
|
|
|
};
|
|
|
|
}
|