nixpkgs/pkgs/development/tools/misc/dfu-programmer/default.nix

24 lines
626 B
Nix
Raw Normal View History

2014-08-12 13:42:10 +02:00
{ stdenv, fetchurl, libusb }:
2014-03-07 13:28:19 +01:00
let
2014-08-12 13:42:10 +02:00
version = "0.7.0";
2014-03-07 13:28:19 +01:00
in
stdenv.mkDerivation rec {
name="dfu-programmer-${version}";
2014-08-12 13:42:10 +02:00
buildInputs = [ libusb ];
2014-03-07 13:28:19 +01:00
src = fetchurl {
url = "mirror://sourceforge/dfu-programmer/${name}.tar.gz";
2014-08-12 13:42:10 +02:00
sha256 = "17lglglk5xrqd2n0impg5bkq4j96qc51cw3kzcghzmzmn6fvg3gf";
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
meta = with stdenv.lib; {
license = licenses.gpl2;
description = "A Device Firmware Update based USB programmer for Atmel chips with a USB bootloader.";
homepage = http://dfu-programmer.sourceforge.net/;
maintainers = [ maintainers.the-kenny ];
};
}