Use libusb-compat instead of unmaintained libusb

Close #4945.
This commit is contained in:
Alexander Flatter 2014-11-11 15:46:47 +01:00 committed by Vladimír Čunát
parent c8c7cc1f09
commit 25859fae74

View File

@ -1,16 +1,12 @@
{stdenv, fetchurl}:
{stdenv, fetchurl, pkgconfig, libusb1}:
stdenv.mkDerivation {
name = "libusb-0.1.12";
name = "libusb-compat-0.1.5";
# On non-linux, we get warnings compiling, and we don't want the
# build to break.
patchPhase = ''
sed -i s/-Werror// Makefile.in
'';
buildInputs = [ pkgconfig libusb1 ];
src = fetchurl {
url = mirror://sourceforge/libusb/libusb-0.1.12.tar.gz;
sha256 = "0i4bacxkyr7xyqxbmb00ypkrv4swkgm0mghbzjsnw6blvvczgxip";
url = mirror://sourceforge/libusb/libusb-compat-0.1.5.tar.bz2;
sha256 = "0nn5icrfm9lkhzw1xjvaks9bq3w6mjg86ggv3fn7kgi4nfvg8kj0";
};
}