pythonPackages.libusb1: Fix darwin build
This commit is contained in:
parent
201ee19758
commit
063aa389df
@ -9,7 +9,7 @@ buildPythonPackage rec {
|
|||||||
sha256 = "a49917a2262cf7134396f6720c8be011f14aabfc5cdc53f880cc672c0f39d271";
|
sha256 = "a49917a2262cf7134396f6720c8be011f14aabfc5cdc53f880cc672c0f39d271";
|
||||||
};
|
};
|
||||||
|
|
||||||
postPatch = lib.optionalString stdenv.isLinux ''
|
postPatch = ''
|
||||||
substituteInPlace usb1/libusb1.py --replace \
|
substituteInPlace usb1/libusb1.py --replace \
|
||||||
"ctypes.util.find_library(base_name)" \
|
"ctypes.util.find_library(base_name)" \
|
||||||
"'${libusb1}/lib/libusb-1.0${stdenv.hostPlatform.extensions.sharedLibrary}'"
|
"'${libusb1}/lib/libusb-1.0${stdenv.hostPlatform.extensions.sharedLibrary}'"
|
||||||
|
Loading…
Reference in New Issue
Block a user