diff --git a/pkgs/development/libraries/libusb1/default.nix b/pkgs/development/libraries/libusb1/default.nix index 160e53714fb1..5fb9d5460ac7 100644 --- a/pkgs/development/libraries/libusb1/default.nix +++ b/pkgs/development/libraries/libusb1/default.nix @@ -13,7 +13,7 @@ stdenv.mkDerivation rec { 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 '';