Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at fix-function-merge 27 lines 668 B view raw
1{ lib, stdenv, fetchFromGitHub 2, cmake 3, libpcap, boost }: 4 5stdenv.mkDerivation rec { 6 pname = "usbtop"; 7 version = "1.0"; 8 9 src = fetchFromGitHub { 10 owner = "aguinet"; 11 repo = pname; 12 rev = "release-${version}"; 13 sha256 = "0qbad0aq6j4jrh90l6a0akk71wdzhyzmy6q8wl138axyj2bp9kss"; 14 }; 15 16 nativeBuildInputs = [ cmake ]; 17 buildInputs = [ libpcap boost ]; 18 19 meta = with lib; { 20 homepage = "https://github.com/aguinet/usbtop"; 21 description = "Top utility that shows an estimated instantaneous bandwidth on USB buses and devices"; 22 mainProgram = "usbtop"; 23 maintainers = [ ]; 24 license = licenses.bsd3; 25 platforms = platforms.linux; 26 }; 27}