summary refs log tree commit diff
path: root/pkgs/os-specific/linux/usbtop/default.nix
blob: 6948d51e5dc7ea61a7dbfdb34fbd4361ca4daa0d (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
{ lib, stdenv, fetchFromGitHub
, cmake
, libpcap, boost }:

stdenv.mkDerivation rec {
  pname = "usbtop";
  version = "1.0";

  src = fetchFromGitHub {
    owner = "aguinet";
    repo = pname;
    rev = "release-${version}";
    sha256 = "0qbad0aq6j4jrh90l6a0akk71wdzhyzmy6q8wl138axyj2bp9kss";
  };

  nativeBuildInputs = [ cmake ];
  buildInputs = [ libpcap boost ];

  meta = with lib; {
    homepage = "https://github.com/aguinet/usbtop";
    description = "A top utility that shows an estimated instantaneous bandwidth on USB buses and devices";
    maintainers = with maintainers; [ etu ];
    license = licenses.bsd3;
    platforms = platforms.linux;
  };
}