diff --git a/pkgs/development/libraries/libusb/default.nix b/pkgs/development/libraries/libusb/default.nix index 3db75ccfda43..64ef4ed66b6d 100644 --- a/pkgs/development/libraries/libusb/default.nix +++ b/pkgs/development/libraries/libusb/default.nix @@ -2,6 +2,13 @@ stdenv.mkDerivation { name = "libusb-0.1.12"; + + # On non-linux, we get warnings compiling, and we don't want the + # build to break. + patchPhase = '' + sed -i s/-Werror// Makefile.in + ''; + src = fetchurl { url = mirror://sourceforge/libusb/libusb-0.1.12.tar.gz; md5 = "caf182cbc7565dac0fd72155919672e6";