2021-01-11 07:54:33 +00:00
|
|
|
{ lib, stdenv, fetchFromGitHub
|
2019-08-30 12:50:50 +01:00
|
|
|
, 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 ];
|
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2019-08-30 12:50:50 +01:00
|
|
|
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;
|
|
|
|
};
|
|
|
|
}
|