diff options
Diffstat (limited to 'pkgs')
-rw-r--r-- | pkgs/development/embedded/openocd/default.nix | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/pkgs/development/embedded/openocd/default.nix b/pkgs/development/embedded/openocd/default.nix index c2f7d231b1a5f..6b4fa92389460 100644 --- a/pkgs/development/embedded/openocd/default.nix +++ b/pkgs/development/embedded/openocd/default.nix @@ -1,5 +1,6 @@ { stdenv , lib +, fetchpatch , fetchurl , pkg-config , hidapi @@ -21,6 +22,15 @@ stdenv.mkDerivation rec { buildInputs = [ hidapi libftdi1 libusb1 ] ++ lib.optional stdenv.isLinux libgpiod; + patches = [ + # Patch is upstream, so can be removed when OpenOCD 0.12.0 or later is released. + (fetchpatch + { + url = "https://github.com/openocd-org/openocd/commit/cff0e417da58adef1ceef9a63a99412c2cc87ff3.patch"; + sha256 = "Xxzf5miWy4S34sbQq8VQdAbY/oqGyhL/AJxiEPRuj3Q="; + }) + ]; + configureFlags = [ "--enable-jtag_vpi" "--enable-usb_blaster_libftdi" |