2006-01-05 00:29:29 +01:00
|
|
|
{stdenv, fetchurl, libusb}:
|
|
|
|
|
2007-06-05 17:57:26 +02:00
|
|
|
let
|
|
|
|
|
|
|
|
usbids = fetchurl {
|
2008-11-14 17:57:19 +01:00
|
|
|
url = http://nixos.org/tarballs/usb.ids.20080115.bz2;
|
2008-01-18 16:18:02 +01:00
|
|
|
sha256 = "0xymp8fpp9pnkj2i4ry8zpsvy18zw14sx03pnz316lpgwc6dx12n";
|
2007-06-05 17:57:26 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
in
|
|
|
|
|
2006-01-05 00:29:29 +01:00
|
|
|
stdenv.mkDerivation {
|
2008-01-18 16:18:02 +01:00
|
|
|
name = "usbutils-0.73";
|
2006-01-05 00:29:29 +01:00
|
|
|
src = fetchurl {
|
2008-01-18 16:18:02 +01:00
|
|
|
url = mirror://sourceforge/linux-usb/usbutils-0.73.tar.gz;
|
|
|
|
sha256 = "1x27mc2apyipf8fa2ac49rfnkm7f5dwv784b1ncgc5yjiz4prp1f";
|
2006-01-05 00:29:29 +01:00
|
|
|
};
|
|
|
|
buildInputs = [libusb];
|
2007-06-05 17:57:26 +02:00
|
|
|
preBuild = "bunzip2 < ${usbids} > usb.ids";
|
2006-01-05 00:29:29 +01:00
|
|
|
}
|