libusb1: fix on darwin

This commit is contained in:
Luca Bruno 2015-07-15 10:29:51 +02:00
parent 723eaf845d
commit 82d2960f15

View File

@ -13,7 +13,7 @@ stdenv.mkDerivation rec {
NIX_LDFLAGS = stdenv.lib.optionalString stdenv.isLinux "-lgcc_s"; NIX_LDFLAGS = stdenv.lib.optionalString stdenv.isLinux "-lgcc_s";
preFixup = '' preFixup = stdenv.lib.optionalString stdenv.isLinux ''
sed 's,-ludev,-L${udev}/lib -ludev,' -i $out/lib/libusb-1.0.la sed 's,-ludev,-L${udev}/lib -ludev,' -i $out/lib/libusb-1.0.la
''; '';