lol
1{ stdenv, fetchurl, pkgconfig, libusb1, hwdata }:
2
3stdenv.mkDerivation rec {
4 name = "usbutils-008";
5
6 src = fetchurl {
7 url = "mirror://kernel/linux/utils/usb/usbutils/${name}.tar.xz";
8 sha256 = "132clk14j4nm8crln2jymdbbc2vhzar2j2hnxyh05m79pbq1lx24";
9 };
10
11 buildInputs = [ pkgconfig libusb1 ];
12
13 postInstall =
14 ''
15 substituteInPlace $out/bin/lsusb.py \
16 --replace /usr/share/usb.ids ${hwdata}/data/hwdata/usb.ids
17 '';
18
19 meta = {
20 homepage = http://www.linux-usb.org/;
21 description = "Tools for working with USB devices, such as lsusb";
22 platforms = stdenv.lib.platforms.linux;
23 };
24}