summary refs log tree commit diff
path: root/pkgs/development/tools/misc/openocd/default.nix
blob: c87bd9d5535436f2f092b2d34564ba8d87805782 (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
32
33
34
35
36
37
38
{stdenv, fetchurl, libftdi, libusb1 }:

stdenv.mkDerivation rec {
  name = "openocd-${version}";
  version = "0.7.0";

  src = fetchurl {
    url = "http://downloads.sourceforge.net/project/openocd/openocd/${version}/openocd-${version}.tar.bz2";
    sha256 = "0qwfyd821sy5p0agz0ybgn5nd7vplipw4mhm485ldj1hcmw7n8sj";
  };

  configureFlags = [ "--enable-ft2232_libftdi"
                     "--enable-jlink"
                     "--enable-rlink"
                     "--enable-ulink"
                     "--enable-stlink" ];

  buildInputs = [ libftdi libusb1 ];

  meta = {
    homepage = http://openocd.sourceforge.net/;
    description = "OpenOCD, an on-chip debugger";

    longDescription =
      '' OpenOCD provides on-chip programming and debugging support with a
         layered architecture of JTAG interface and TAP support, debug target
         support (e.g. ARM, MIPS), and flash chip drivers (e.g. CFI, NAND,
         etc.).  Several network interfaces are available for interactiving
         with OpenOCD: HTTP, telnet, TCL, and GDB.  The GDB server enables
         OpenOCD to function as a "remote target" for source-level debugging
         of embedded systems using the GNU GDB program.
      '';

    license = "GPLv2+";
    maintainers = with stdenv.lib.maintainers; [ viric bjornfor ];
    platforms = with stdenv.lib.platforms; linux;
  };
}