about summary refs log tree commit diff
path: root/pkgs/os-specific
diff options
context:
space:
mode:
authorfigsoda <figsoda@pm.me>2021-10-05 15:42:21 -0400
committerGitHub <noreply@github.com>2021-10-05 15:42:21 -0400
commitaa71e883f8e537f8ff2c0a285f315a17792abb7c (patch)
tree65a51afebb72e5269674ed8504f1ea6c0ba4c25f /pkgs/os-specific
parent807370df9481804598f06c9e17020cdb7f974a18 (diff)
parent04f959640594d7770369ab4c7a135dd4674ac945 (diff)
Merge pull request #140488 from arezvov/bpfmon
bpfmon: init at 2.50
Diffstat (limited to 'pkgs/os-specific')
-rw-r--r--pkgs/os-specific/linux/bpfmon/default.nix24
1 files changed, 24 insertions, 0 deletions
diff --git a/pkgs/os-specific/linux/bpfmon/default.nix b/pkgs/os-specific/linux/bpfmon/default.nix
new file mode 100644
index 0000000000000..32781d3654917
--- /dev/null
+++ b/pkgs/os-specific/linux/bpfmon/default.nix
@@ -0,0 +1,24 @@
+{ stdenv, fetchFromGitHub, lib, libpcap, yascreen }:
+
+stdenv.mkDerivation rec {
+  pname = "bpfmon";
+  version = "2.50";
+
+  src = fetchFromGitHub {
+    owner = "bbonev";
+    repo = "bpfmon";
+    rev = "v${version}";
+    sha256 = "sha256-x4EuGZBtg45bD9q1B/6KwjDRXXeRsdFmRllREsech+E=";
+  };
+
+  buildInputs = [ libpcap yascreen ];
+  makeFlags = [ "PREFIX=$(out)" ];
+
+  meta = with lib; {
+    description = "BPF based visual packet rate monitor";
+    homepage = "https://github.com/bbonev/bpfmon";
+    maintainers = with maintainers; [ arezvov ];
+    license = licenses.gpl2Plus;
+    platforms = platforms.linux;
+  };
+}