-
Notifications
You must be signed in to change notification settings - Fork 1
/
openocd.nix
49 lines (43 loc) · 1.43 KB
/
openocd.nix
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
39
40
41
42
43
44
45
46
47
48
49
{ stdenv
, lib
, fetchFromGitHub
, autoreconfHook
, pkg-config
, tcl
}:
stdenv.mkDerivation rec {
pname = "openocd-rp2040";
version = "2021-02-03";
src = fetchFromGitHub {
owner = "raspberrypi";
repo = "openocd";
rev = "f8e14ec97b0d98c8e2ffdd08ab5ff9537f1c9a63";
sha256 = "cyTzS2DwUjjJqmjTrIsj41+eUKmcP2ztxp76KHoGwd4=";
fetchSubmodules = true;
};
nativeBuildInputs = [ autoreconfHook pkg-config tcl ];
configureFlags = [
"--enable-sysfsgpio"
"--enable-bcm2835gpio"
];
NIX_CFLAGS_COMPILE = [
"-Wno-error=cpp"
"-Wno-error=strict-prototypes" # fixes build failure with hidapi 0.10.0
];
meta = with lib; {
description = "Free and Open On-Chip Debugging, In-System Programming and Boundary-Scan Testing";
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.
'';
homepage = "https://openocd.sourceforge.net/";
license = licenses.gpl2Plus;
maintainers = with maintainers; [ bjornfor ];
platforms = platforms.unix;
};
}