2015-07-22 22:07:31 +01:00
|
|
|
{ stdenv, fetchurl, pkgconfig, libusb1 }:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name="dfu-util-${version}";
|
2016-04-12 03:24:30 +01:00
|
|
|
version = "0.9";
|
2015-07-22 22:07:31 +01:00
|
|
|
|
|
|
|
nativeBuildInputs = [ pkgconfig ];
|
|
|
|
buildInputs = [ libusb1 ];
|
|
|
|
|
|
|
|
src = fetchurl {
|
2016-04-12 03:24:30 +01:00
|
|
|
url = "http://dfu-util.sourceforge.net/releases/${name}.tar.gz";
|
|
|
|
sha256 = "0czq73m92ngf30asdzrfkzraag95hlrr74imbanqq25kdim8qhin";
|
2015-07-22 22:07:31 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
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.gnumonks.org/;
|
|
|
|
license = licenses.gpl2Plus;
|
|
|
|
platforms = platforms.unix;
|
|
|
|
maintainers = [ maintainers.fpletz ];
|
|
|
|
};
|
|
|
|
}
|