Skip to content

Commit

Permalink
libusb: backport bugfix for 1.0.24
Browse files Browse the repository at this point in the history
Both arch and debian apply this same patch. Resolves the issue at
libusb/libusb#831.
  • Loading branch information
yorickvP authored and dasj19 committed Feb 11, 2021
1 parent eae4c69 commit e6ab897
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions pkgs/development/libraries/libusb1/default.nix
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
{ lib, stdenv
, fetchFromGitHub
, fetchpatch
, autoreconfHook
, pkg-config
, enableUdev ? stdenv.isLinux && !stdenv.hostPlatform.isMusl
Expand All @@ -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 ++
Expand Down

0 comments on commit e6ab897

Please sign in to comment.