nixpkgs/pkgs/os-specific/linux/usbutils/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

35 lines
887 B
Nix
Raw Normal View History

2021-08-17 22:28:01 +00:00
{ lib, stdenv, fetchurl, substituteAll, autoreconfHook, pkg-config, libusb1, hwdata, python3 }:
stdenv.mkDerivation rec {
2021-08-17 22:28:01 +00:00
pname = "usbutils";
version = "014";
2012-09-29 03:09:34 +00:00
src = fetchurl {
2021-08-17 22:28:01 +00:00
url = "mirror://kernel/linux/utils/usb/usbutils/usbutils-${version}.tar.xz";
2021-08-17 16:25:26 +00:00
sha256 = "sha256-Ogec+tYFYCJ7ZxkkgteBO/ljJvy7ZsBCVIOXFfJ2/Gk=";
};
patches = [
(substituteAll {
src = ./fix-paths.patch;
inherit hwdata;
})
];
2012-09-29 03:09:34 +00:00
nativeBuildInputs = [ autoreconfHook pkg-config ];
buildInputs = [ libusb1 python3 ];
outputs = [ "out" "man" "python" ];
postInstall = ''
moveToOutput "bin/lsusb.py" "$python"
'';
meta = with lib; {
homepage = "http://www.linux-usb.org/";
description = "Tools for working with USB devices, such as lsusb";
2021-08-17 22:28:01 +00:00
maintainers = with maintainers; [ ];
2018-08-30 20:00:16 +00:00
license = licenses.gpl2Plus;
platforms = platforms.linux;
};
}