2015-03-26 12:00:00 -07:00
|
|
|
{ stdenv, fetchurl, pkgconfig, libusb1, hwdata }:
|
2007-06-05 08:57:26 -07:00
|
|
|
|
2009-08-11 13:48:56 -07:00
|
|
|
stdenv.mkDerivation rec {
|
2018-05-17 16:23:42 -07:00
|
|
|
name = "usbutils-010";
|
2012-09-28 20:09:34 -07:00
|
|
|
|
2006-01-04 15:29:29 -08:00
|
|
|
src = fetchurl {
|
2013-07-06 02:55:40 -07:00
|
|
|
url = "mirror://kernel/linux/utils/usb/usbutils/${name}.tar.xz";
|
2018-05-17 16:23:42 -07:00
|
|
|
sha256 = "06aag4jfgsfjxk563xsp9ik9nadihmasrr37a1gb0vwqni5kdiv1";
|
2006-01-04 15:29:29 -08:00
|
|
|
};
|
2012-05-18 17:44:30 -07:00
|
|
|
|
2017-09-05 14:26:13 -07:00
|
|
|
nativeBuildInputs = [ pkgconfig ];
|
|
|
|
buildInputs = [ libusb1 ];
|
2012-09-28 20:09:34 -07:00
|
|
|
|
2013-10-08 04:24:50 -07:00
|
|
|
postInstall =
|
|
|
|
''
|
|
|
|
substituteInPlace $out/bin/lsusb.py \
|
2015-03-26 12:00:00 -07:00
|
|
|
--replace /usr/share/usb.ids ${hwdata}/data/hwdata/usb.ids
|
2013-10-08 04:24:50 -07:00
|
|
|
'';
|
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";
|
2015-03-20 08:52:02 -07:00
|
|
|
platforms = stdenv.lib.platforms.linux;
|
2009-08-11 13:48:56 -07:00
|
|
|
};
|
2006-01-04 15:29:29 -08:00
|
|
|
}
|