libusb: backport bugfix for 1.0.24

Both arch and debian apply this same patch. Resolves the issue at
https://github.com/libusb/libusb/issues/831.
This commit is contained in:
Yorick 2021-02-07 15:02:53 +01:00 committed by GitHub
parent 5b0fee2db2
commit 3a614991df
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1,5 +1,6 @@
{ lib, stdenv
, fetchFromGitHub
, fetchpatch
, autoreconfHook
, pkg-config
, enableUdev ? stdenv.isLinux && !stdenv.hostPlatform.isMusl
@ -22,6 +23,13 @@ stdenv.mkDerivation rec {
outputs = [ "out" "dev" ];
patches = [ (fetchpatch {
# https://bugs.archlinux.org/task/69121
url = "https://github.com/libusb/libusb/commit/f6d2cb561402c3b6d3627c0eb89e009b503d9067.patch";
sha256 = "1dbahikcbwkjhyvks7wbp7fy2bf7nca48vg5z0zqvqzjb9y595cq";
excludes = [ "libusb/version_nano.h" ];
}) ];
nativeBuildInputs = [ pkg-config autoreconfHook ];
propagatedBuildInputs =
lib.optional enableUdev udev ++