39 lines
748 B
Nix
39 lines
748 B
Nix
|
|
{
|
||
|
|
lib,
|
||
|
|
stdenv,
|
||
|
|
fetchFromGitHub,
|
||
|
|
libpcap,
|
||
|
|
yascreen,
|
||
|
|
}:
|
||
|
|
|
||
|
|
stdenv.mkDerivation rec {
|
||
|
|
pname = "bpfmon";
|
||
|
|
version = "2.53";
|
||
|
|
|
||
|
|
src = fetchFromGitHub {
|
||
|
|
owner = "bbonev";
|
||
|
|
repo = "bpfmon";
|
||
|
|
tag = "v${version}";
|
||
|
|
hash = "sha256-+W+3RLvgXXtUImzLkJr9mSWExvAUgjMp+lR9sg14VaY=";
|
||
|
|
};
|
||
|
|
|
||
|
|
buildInputs = [
|
||
|
|
libpcap
|
||
|
|
yascreen
|
||
|
|
];
|
||
|
|
|
||
|
|
makeFlags = [
|
||
|
|
"PREFIX=$(out)"
|
||
|
|
];
|
||
|
|
|
||
|
|
meta = {
|
||
|
|
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 lib.maintainers; [ arezvov ];
|
||
|
|
license = lib.licenses.gpl2Plus;
|
||
|
|
platforms = lib.platforms.linux;
|
||
|
|
};
|
||
|
|
}
|