nixpkgs/pkgs/os-specific/linux/bpfmon/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

37 lines
721 B
Nix
Raw Normal View History

2023-01-07 22:28:51 +00:00
{ lib
, stdenv
, fetchFromGitHub
, libpcap
, yascreen
}:
2021-09-28 20:06:24 +00:00
stdenv.mkDerivation rec {
pname = "bpfmon";
2023-08-14 05:33:04 +00:00
version = "2.52";
2021-09-28 20:06:24 +00:00
src = fetchFromGitHub {
owner = "bbonev";
repo = "bpfmon";
2023-01-07 22:28:51 +00:00
rev = "refs/tags/v${version}";
2023-08-14 05:33:04 +00:00
hash = "sha256-W7OnrC+FCxMd4YbYiybjIvO0LT7Hr1/0Y3BQwItaTBs=";
2021-09-28 20:06:24 +00:00
};
2023-01-07 22:28:51 +00:00
buildInputs = [
libpcap
yascreen
];
makeFlags = [
"PREFIX=$(out)"
];
2021-09-28 20:06:24 +00:00
meta = with lib; {
description = "BPF based visual packet rate monitor";
homepage = "https://github.com/bbonev/bpfmon";
2023-01-07 22:28:51 +00:00
changelog = "https://github.com/bbonev/bpfmon/releases/tag/v${version}";
2021-09-28 20:06:24 +00:00
maintainers = with maintainers; [ arezvov ];
license = licenses.gpl2Plus;
platforms = platforms.linux;
};
}