3
0
Fork 0
forked from mirrors/nixpkgs

pythonPackages.libusb1: Fix darwin build

This commit is contained in:
Josef Kemetmüller 2018-09-09 20:56:34 +02:00
parent 201ee19758
commit 063aa389df

View file

@ -9,7 +9,7 @@ buildPythonPackage rec {
sha256 = "a49917a2262cf7134396f6720c8be011f14aabfc5cdc53f880cc672c0f39d271";
};
postPatch = lib.optionalString stdenv.isLinux ''
postPatch = ''
substituteInPlace usb1/libusb1.py --replace \
"ctypes.util.find_library(base_name)" \
"'${libusb1}/lib/libusb-1.0${stdenv.hostPlatform.extensions.sharedLibrary}'"