mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-27 08:01:14 +00:00
17 lines
372 B
Nix
17 lines
372 B
Nix
{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";
|
|
};
|
|
}
|