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

25 lines
657 B
Nix
Raw Normal View History

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