nixpkgs/pkgs/tools/misc/usbview/default.nix
2023-12-02 06:30:33 +01:00

40 lines
706 B
Nix

{ lib
, stdenv
, fetchFromGitHub
, autoreconfHook
, pkg-config
, imagemagick
, gtk3
}:
stdenv.mkDerivation rec {
pname = "usbview";
version = "3.1";
src = fetchFromGitHub {
owner = "gregkh";
repo = "usbview";
rev = "v${version}";
hash = "sha256-h+sB83BYsrB2VxwtatPWNiM0WdTCMY289nh+/0o8GOw=";
};
nativeBuildInputs = [
autoreconfHook
pkg-config
imagemagick
];
buildInputs = [
gtk3
];
meta = with lib; {
description = "USB viewer for Linux";
license = licenses.gpl2Only;
homepage = "http://www.kroah.com/linux-usb/";
maintainers = with maintainers; [ shamilton h7x4 ];
platforms = platforms.linux;
mainProgram = "usbview";
};
}