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.
master
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
1 changed files with 8 additions and 0 deletions

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 ++