From 4bc436ca3ab84867edebbdfb843c4a3f27cb199c Mon Sep 17 00:00:00 2001 From: Luca Bruno Date: Thu, 25 Jun 2015 15:07:05 +0200 Subject: [PATCH] libusb1: fix .la file --- pkgs/development/libraries/libusb1/default.nix | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/pkgs/development/libraries/libusb1/default.nix b/pkgs/development/libraries/libusb1/default.nix index 884db2b3b25a..160e53714fb1 100644 --- a/pkgs/development/libraries/libusb1/default.nix +++ b/pkgs/development/libraries/libusb1/default.nix @@ -13,6 +13,10 @@ stdenv.mkDerivation rec { NIX_LDFLAGS = stdenv.lib.optionalString stdenv.isLinux "-lgcc_s"; + preFixup = '' + sed 's,-ludev,-L${udev}/lib -ludev,' -i $out/lib/libusb-1.0.la + ''; + meta = { homepage = http://www.libusb.info; description = "User-space USB library";