summary refs log tree commit diff
path: root/pkgs/development/tools/misc/avrdude/default.nix
blob: adbaf5e3e8bfe18acec41526f4eb6333376c23ba (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
{ composableDerivation, fetchurl, yacc, flex, texLive, libusb }:

let edf = composableDerivation.edf; in

composableDerivation.composableDerivation {} rec {
  name="avrdude-5.10";

  src = fetchurl {
    url = "http://download.savannah.gnu.org/releases/avrdude/${name}.tar.gz";
    sha256 = "0pmy73777x8p7f2aj2w2q1dnk1bvhd1cm7hcs1s9hsdqsmiinl41";
  };

  configureFlags = [ "--disable-dependency-tracking" ];

  buildInputs = [ yacc flex libusb ];

  flags =
       edf { name = "doc"; enable = { buildInputs = texLive; configureFlags = ["--enable-doc"]; }; }
    // edf { name = "parport"; };

  cfg = {
    docSupport = false; # untested
    parportSupport = true;
  };

  meta = {
    license = "GPL-2";
    description = "AVR Downloader/UploaDEr";
    homepage = http://savannah.nongnu.org/projects/avrdude;
  };
}