2012-05-18 19:52:36 -07:00
|
|
|
{ stdenv, fetchurl, pkgconfig, libusb1, zlib, autoreconfHook }:
|
2006-01-04 15:29:29 -08:00
|
|
|
|
2007-06-05 08:57:26 -07:00
|
|
|
let
|
|
|
|
|
2009-08-11 13:48:56 -07:00
|
|
|
# Obtained from http://www.linux-usb.org/usb.ids.bz2.
|
2007-06-05 08:57:26 -07:00
|
|
|
usbids = fetchurl {
|
2012-05-18 17:14:33 -07:00
|
|
|
url = http://nixos.org/tarballs/usb.ids.20120411.bz2;
|
|
|
|
sha256 = "0rgxancjd1krv9g817w1wlbg7k19i8mwx37qs1vw1f21xz49yvja";
|
2007-06-05 08:57:26 -07:00
|
|
|
};
|
|
|
|
|
|
|
|
in
|
|
|
|
|
2009-08-11 13:48:56 -07:00
|
|
|
stdenv.mkDerivation rec {
|
2012-05-18 17:44:30 -07:00
|
|
|
name = "usbutils-005";
|
2009-08-11 13:48:56 -07:00
|
|
|
|
2006-01-04 15:29:29 -08:00
|
|
|
src = fetchurl {
|
2012-05-18 17:44:30 -07:00
|
|
|
url = mirror://debian/pool/main/u/usbutils/usbutils_005.orig.tar.gz;
|
|
|
|
sha256 = "05sxkm7b7lj8p8kr8kw68m49h66351s803z42233b8lssmc3wlra";
|
2006-01-04 15:29:29 -08:00
|
|
|
};
|
2009-08-11 13:48:56 -07:00
|
|
|
|
2012-05-18 19:52:36 -07:00
|
|
|
buildInputs = [ pkgconfig libusb1 autoreconfHook ];
|
2012-05-18 17:44:30 -07:00
|
|
|
|
|
|
|
preConfigure = "autoreconf -i";
|
2009-08-11 13:48:56 -07:00
|
|
|
|
2007-06-05 08:57:26 -07:00
|
|
|
preBuild = "bunzip2 < ${usbids} > usb.ids";
|
2009-08-11 13:48:56 -07:00
|
|
|
|
|
|
|
meta = {
|
|
|
|
homepage = http://www.linux-usb.org/;
|
|
|
|
description = "Tools for working with USB devices, such as lsusb";
|
|
|
|
};
|
2006-01-04 15:29:29 -08:00
|
|
|
}
|