mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-19 08:36:41 +01:00
6ad413668e
OpenOCD 0.7.0 has grown a dependency on libusb1.
38 lines
1.3 KiB
Nix
38 lines
1.3 KiB
Nix
{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.berlios.de;
|
|
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];
|
|
platforms = with stdenv.lib.platforms; linux;
|
|
};
|
|
}
|