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:
parent
5b0fee2db2
commit
3a614991df
1 changed files with 8 additions and 0 deletions
|
@ -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 ++
|
||||
|
|
Loading…
Reference in a new issue