mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-15 14:26:33 +01:00
ff1a94e523
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.
37 lines
749 B
Nix
37 lines
749 B
Nix
{ lib
|
|
, stdenv
|
|
, fetchFromGitHub
|
|
, libpcap
|
|
, yascreen
|
|
}:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "bpfmon";
|
|
version = "2.52";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "bbonev";
|
|
repo = "bpfmon";
|
|
rev = "refs/tags/v${version}";
|
|
hash = "sha256-W7OnrC+FCxMd4YbYiybjIvO0LT7Hr1/0Y3BQwItaTBs=";
|
|
};
|
|
|
|
buildInputs = [
|
|
libpcap
|
|
yascreen
|
|
];
|
|
|
|
makeFlags = [
|
|
"PREFIX=$(out)"
|
|
];
|
|
|
|
meta = with lib; {
|
|
description = "BPF based visual packet rate monitor";
|
|
mainProgram = "bpfmon";
|
|
homepage = "https://github.com/bbonev/bpfmon";
|
|
changelog = "https://github.com/bbonev/bpfmon/releases/tag/v${version}";
|
|
maintainers = with maintainers; [ arezvov ];
|
|
license = licenses.gpl2Plus;
|
|
platforms = platforms.linux;
|
|
};
|
|
}
|