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