Files
nixpkgs/pkgs/by-name/us/usbutils/fix-paths.patch
Misaka13514 ece9ee93fa usbutils: 018 -> 019
- Rebase `fix-paths.patch` to accomodate upstream changes in `lsusb.py`
- Update Darwin patch URL to homebrew-core as the old formula-patches
  repo is deprecated (hash unchanged).
2026-01-08 15:05:37 +08:00

16 lines
335 B
Diff

diff --git a/lsusb.py b/lsusb.py
index 8f19ec4..ae81134 100755
--- a/lsusb.py
+++ b/lsusb.py
@@ -27,9 +27,7 @@ showwakeup = False
prefix = "/sys/bus/usb/devices/"
usbids = [
- "/usr/share/hwdata/usb.ids",
- "/usr/share/misc/usb.ids",
- "/usr/share/usb.ids",
+ "@hwdata@/share/hwdata/usb.ids",
]
cols = ("", "", "", "", "", "")