tangled
alpha
login
or
join now
tjh.dev
/
nixpkgs
Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
0
fork
atom
overview
issues
pulls
pipelines
python.pkgs.libusb1: fix build
Frederik Rietdijk
8 years ago
89e47937
6c86adff
+1
-1
1 changed file
expand all
collapse all
unified
split
pkgs
development
python-modules
libusb1
default.nix
+1
-1
pkgs/development/python-modules/libusb1/default.nix
···
12
postPatch = lib.optionalString stdenv.isLinux ''
13
substituteInPlace usb1/libusb1.py --replace \
14
"ctypes.util.find_library(base_name)" \
15
-
"'${libusb1}/lib/libusb${stdenv.hostPlatform.extensions.sharedLibrary}'"
16
'';
17
18
buildInputs = [ libusb1 ];
···
12
postPatch = lib.optionalString stdenv.isLinux ''
13
substituteInPlace usb1/libusb1.py --replace \
14
"ctypes.util.find_library(base_name)" \
15
+
"'${libusb1}/lib/libusb-1.0${stdenv.hostPlatform.extensions.sharedLibrary}'"
16
'';
17
18
buildInputs = [ libusb1 ];