···11+{ stdenv, fetchurl, pkgconfig, libusb1 }:
22+33+stdenv.mkDerivation rec {
44+ name="dfu-util-${version}";
55+ version = "0.8";
66+77+ nativeBuildInputs = [ pkgconfig ];
88+ buildInputs = [ libusb1 ];
99+1010+ src = fetchurl {
1111+ url = "mirror://debian/pool/main/d/dfu-util/dfu-util_0.8.orig.tar.gz";
1212+ sha256 = "0n7h08avlzin04j93m6hkq9id6hxjiiix7ff9gc2n89aw6dxxjsm";
1313+ };
1414+1515+ meta = with stdenv.lib; {
1616+ description = "Device firmware update (DFU) USB programmer";
1717+ longDescription = ''
1818+ dfu-util is a program that implements the host (PC) side of the USB
1919+ DFU 1.0 and 1.1 (Universal Serial Bus Device Firmware Upgrade) protocol.
2020+2121+ DFU is intended to download and upload firmware to devices connected over
2222+ USB. It ranges from small devices like micro-controller boards up to mobile
2323+ phones. With dfu-util you are able to download firmware to your device or
2424+ upload firmware from it.
2525+ '';
2626+ homepage = http://dfu-util.gnumonks.org/;
2727+ license = licenses.gpl2Plus;
2828+ platforms = platforms.unix;
2929+ maintainers = [ maintainers.fpletz ];
3030+ };
3131+}