openocd: fix segfault caused by libusb incompatibility
This issue is fixed in upstream OpenOCD, but there hasn't been a new release since the fix. See https://github.com/libusb/libusb/issues/928 for context. Signed-off-by: Elias Naur <mail@eliasnaur.com>
This commit is contained in:
parent
7eb1a32324
commit
aa3fd4aed5
@ -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"
|
||||
|
Loading…
Reference in New Issue
Block a user