about summary refs log tree commit diff
path: root/pkgs/development/libraries/libusb/default.nix
blob: ac06b4893f1e1e7e0863b1f918581dc3d4eeed5b (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
{stdenv, fetchurl}:

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;
    sha256 = "0i4bacxkyr7xyqxbmb00ypkrv4swkgm0mghbzjsnw6blvvczgxip";
  };
}