1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-22 13:41:26 +00:00

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}'"