summary refs log tree commit diff
path: root/pkgs/tools/misc/usbview
diff options
context:
space:
mode:
authorSCOTT-HAMILTON <sgn.hamilton+github@protonmail.com>2021-03-18 23:24:20 +0100
committerGitHub <noreply@github.com>2021-03-18 23:24:20 +0100
commite53281a59b4abd0685ed98f3f16a24d77eb0601d (patch)
tree764ff46e7f4a6f9499c949f559ae548c9a030ac2 /pkgs/tools/misc/usbview
parent03eb6426afb58c8d58d9aa155dcc3a884e28a031 (diff)
usbview: init at 2.0 (#116450)
Diffstat (limited to 'pkgs/tools/misc/usbview')
-rw-r--r--pkgs/tools/misc/usbview/default.nix36
1 files changed, 36 insertions, 0 deletions
diff --git a/pkgs/tools/misc/usbview/default.nix b/pkgs/tools/misc/usbview/default.nix
new file mode 100644
index 0000000000000..2f417ea86de55
--- /dev/null
+++ b/pkgs/tools/misc/usbview/default.nix
@@ -0,0 +1,36 @@
+{ lib
+, stdenv
+, fetchFromGitHub
+, autoreconfHook
+, pkg-config
+, gtk3
+}:
+
+stdenv.mkDerivation rec {
+  pname = "usbview";
+  version = "2.0";
+
+  src = fetchFromGitHub {
+    owner = "gregkh";
+    repo = "usbview";
+    rev = "v${version}";
+    sha256 = "1cw5jjpidjn34rxdjslpdlj99k4dqaq1kz6mplv5hgjdddijvn5p";
+  };
+
+  nativeBuildInputs = [
+    autoreconfHook
+    pkg-config
+  ];
+
+  buildInputs = [
+    gtk3
+  ];
+
+  meta = with lib; {
+    description = "USB viewer for Linux";
+    license = licenses.gpl2Only;
+    homepage = "http://www.kroah.com/linux-usb/";
+    maintainers = with maintainers; [ shamilton ];
+    platforms = platforms.linux;
+  };
+}