about summary refs log tree commit diff
path: root/pkgs/development
diff options
context:
space:
mode:
authorLluís Batlle i Rossell <viric@vicerveza.homeunix.net>2010-03-06 22:34:21 +0000
committerLluís Batlle i Rossell <viric@vicerveza.homeunix.net>2010-03-06 22:34:21 +0000
commit329d46cbd62da804fee673d0d9be4da2f553d4d1 (patch)
tree1122a33c2a321d1696511adf60977787721e3e28 /pkgs/development
parent11c20b3a2cd9a3ba04f1c4aa8e4e967e3ced0cf9 (diff)
downloadnixlib-329d46cbd62da804fee673d0d9be4da2f553d4d1.tar
nixlib-329d46cbd62da804fee673d0d9be4da2f553d4d1.tar.gz
nixlib-329d46cbd62da804fee673d0d9be4da2f553d4d1.tar.bz2
nixlib-329d46cbd62da804fee673d0d9be4da2f553d4d1.tar.lz
nixlib-329d46cbd62da804fee673d0d9be4da2f553d4d1.tar.xz
nixlib-329d46cbd62da804fee673d0d9be4da2f553d4d1.tar.zst
nixlib-329d46cbd62da804fee673d0d9be4da2f553d4d1.zip
Making libusb build on non-linux. It was built with -Werror, and I removed that.
There were compiler warnings in non-linux.

svn path=/nixpkgs/trunk/; revision=20456
Diffstat (limited to 'pkgs/development')
-rw-r--r--pkgs/development/libraries/libusb/default.nix7
1 files changed, 7 insertions, 0 deletions
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";