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,5 +1,6 @@
|
|||||||
{ lib, stdenv
|
{ lib, stdenv
|
||||||
, fetchFromGitHub
|
, fetchFromGitHub
|
||||||
|
, fetchpatch
|
||||||
, autoreconfHook
|
, autoreconfHook
|
||||||
, pkg-config
|
, pkg-config
|
||||||
, enableUdev ? stdenv.isLinux && !stdenv.hostPlatform.isMusl
|
, enableUdev ? stdenv.isLinux && !stdenv.hostPlatform.isMusl
|
||||||
@ -22,6 +23,13 @@ stdenv.mkDerivation rec {
|
|||||||
|
|
||||||
outputs = [ "out" "dev" ];
|
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 ];
|
nativeBuildInputs = [ pkg-config autoreconfHook ];
|
||||||
propagatedBuildInputs =
|
propagatedBuildInputs =
|
||||||
lib.optional enableUdev udev ++
|
lib.optional enableUdev udev ++
|
||||||
|
Loading…
x
Reference in New Issue
Block a user