nixpkgs/pkgs/os-specific/linux/usbtop/default.nix
stuebinm ff1a94e523 treewide: add meta.mainProgram to packages with a single binary
The nixpkgs-unstable channel's programs.sqlite was used to identify
packages producing exactly one binary, and these automatically added
to their package definitions wherever possible.
2024-03-19 03:14:51 +01:00

28 lines
688 B
Nix

{ 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";
mainProgram = "usbtop";
maintainers = with maintainers; [ ];
license = licenses.bsd3;
platforms = platforms.linux;
};
}