mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-09 23:33:34 +00:00
b1b49e114b
Semi-automatic update generated by https://github.com/ryantm/nixpkgs-update tools. This update was made based on information from https://repology.org/metapackage/usbutils/versions. These checks were done: - built on NixOS - Warning: no invocation of /nix/store/wgq4wwb9dxnhkbih9jscikf2lxhdvbkl-usbutils-010/bin/lsusb.py had a zero exit code or showed the expected version - /nix/store/wgq4wwb9dxnhkbih9jscikf2lxhdvbkl-usbutils-010/bin/usbhid-dump passed the binary check. - /nix/store/wgq4wwb9dxnhkbih9jscikf2lxhdvbkl-usbutils-010/bin/lsusb passed the binary check. - /nix/store/wgq4wwb9dxnhkbih9jscikf2lxhdvbkl-usbutils-010/bin/usb-devices passed the binary check. - 3 of 4 passed binary check by having a zero exit code. - 1 of 4 passed binary check by having the new version present in output. - found 010 with grep in /nix/store/wgq4wwb9dxnhkbih9jscikf2lxhdvbkl-usbutils-010 - directory tree listing: https://gist.github.com/ea1dc2aa0de1416d4359481ce7edb85e - du listing: https://gist.github.com/f46f6ac9b995df459105446dc2761e28
26 lines
651 B
Nix
26 lines
651 B
Nix
{ stdenv, fetchurl, pkgconfig, libusb1, hwdata }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
name = "usbutils-010";
|
|
|
|
src = fetchurl {
|
|
url = "mirror://kernel/linux/utils/usb/usbutils/${name}.tar.xz";
|
|
sha256 = "06aag4jfgsfjxk563xsp9ik9nadihmasrr37a1gb0vwqni5kdiv1";
|
|
};
|
|
|
|
nativeBuildInputs = [ pkgconfig ];
|
|
buildInputs = [ libusb1 ];
|
|
|
|
postInstall =
|
|
''
|
|
substituteInPlace $out/bin/lsusb.py \
|
|
--replace /usr/share/usb.ids ${hwdata}/data/hwdata/usb.ids
|
|
'';
|
|
|
|
meta = {
|
|
homepage = http://www.linux-usb.org/;
|
|
description = "Tools for working with USB devices, such as lsusb";
|
|
platforms = stdenv.lib.platforms.linux;
|
|
};
|
|
}
|