Merge pull request #167844 from eliasnaur/openocd-patch

openocd: fix segfault caused by libusb incompatibility
This commit is contained in:
ajs124 2022-04-09 01:01:29 +02:00 committed by GitHub
commit 4e23a0b384
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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"