2021-02-05 17:12:51 +00:00
|
|
|
{ lib, stdenv, fetchurl, pkg-config, libusb1 }:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "dfu-util";
|
2021-10-17 02:12:59 +00:00
|
|
|
version = "0.11";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2021-02-05 17:12:51 +00:00
|
|
|
nativeBuildInputs = [ pkg-config ];
|
2020-04-24 23:36:52 +00:00
|
|
|
buildInputs = [ libusb1 ];
|
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "http://dfu-util.sourceforge.net/releases/${pname}-${version}.tar.gz";
|
2021-10-17 02:12:59 +00:00
|
|
|
sha256 = "sha256-tLU7ohqC7349TEffKVKt9fpJT0mbawtXxYxdBK6P8Z4=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2021-02-05 17:12:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
description = "Device firmware update (DFU) USB programmer";
|
|
|
|
longDescription = ''
|
|
|
|
dfu-util is a program that implements the host (PC) side of the USB
|
|
|
|
DFU 1.0 and 1.1 (Universal Serial Bus Device Firmware Upgrade) protocol.
|
|
|
|
|
|
|
|
DFU is intended to download and upload firmware to devices connected over
|
|
|
|
USB. It ranges from small devices like micro-controller boards up to mobile
|
|
|
|
phones. With dfu-util you are able to download firmware to your device or
|
|
|
|
upload firmware from it.
|
|
|
|
'';
|
|
|
|
homepage = "http://dfu-util.sourceforge.net";
|
|
|
|
license = licenses.gpl2Plus;
|
|
|
|
platforms = platforms.unix;
|
|
|
|
maintainers = [ maintainers.fpletz ];
|
|
|
|
};
|
|
|
|
}
|