mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-28 09:53:10 +00:00
Merge pull request #17665 from philandstuff/pyusb-hardcode-path-to-libusb1
pyusb: fix hardcoding libusb1 path
This commit is contained in:
commit
68af82b575
@ -25940,7 +25940,7 @@ in modules // {
|
||||
postPatch = ''
|
||||
libusb=${pkgs.libusb1.out}/lib/libusb-1.0.so
|
||||
test -f $libusb || { echo "ERROR: $libusb doesn't exist, please update/fix this build expression."; exit 1; }
|
||||
sed -i -e "s|libname = .*|libname = \"$libusb\"|" usb/backend/libusb1.py
|
||||
sed -i -e "s|find_library=None|find_library=lambda _:\"$libusb\"|" usb/backend/libusb1.py
|
||||
'';
|
||||
|
||||
# No tests included
|
||||
|
Loading…
Reference in New Issue
Block a user