2024-06-05 15:53:02 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
rustPlatform,
|
|
|
|
fetchFromGitHub,
|
|
|
|
pkg-config,
|
|
|
|
elfutils,
|
|
|
|
zlib,
|
|
|
|
libbpf,
|
|
|
|
clangStdenv,
|
2024-02-29 20:09:43 +00:00
|
|
|
}:
|
2024-06-05 15:53:02 +00:00
|
|
|
let
|
2024-02-29 20:09:43 +00:00
|
|
|
pname = "bpftop";
|
2024-06-05 15:53:02 +00:00
|
|
|
version = "0.5.1";
|
|
|
|
in
|
|
|
|
rustPlatform.buildRustPackage.override { stdenv = clangStdenv; } {
|
|
|
|
inherit pname version;
|
2024-02-29 20:09:43 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "Netflix";
|
|
|
|
repo = "bpftop";
|
2024-06-05 15:53:02 +00:00
|
|
|
rev = "refs/tags/v${version}";
|
|
|
|
hash = "sha256-CSQfg0JuWm0CFyC4eXxn7eSyKIu0gKAqgiQT64tgnDI=";
|
2024-02-29 20:09:43 +00:00
|
|
|
};
|
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
cargoHash = "sha256-Hg763Zy5KRZqEDoasoDScZGAPb1ABRp+LI1c7IYJNf0=";
|
2024-02-29 20:09:43 +00:00
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
elfutils
|
|
|
|
libbpf
|
|
|
|
zlib
|
|
|
|
];
|
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
nativeBuildInputs = [ pkg-config ];
|
2024-02-29 20:09:43 +00:00
|
|
|
|
2024-07-27 06:49:29 +00:00
|
|
|
hardeningDisable = [
|
|
|
|
"zerocallusedregs"
|
|
|
|
];
|
|
|
|
|
2024-02-29 20:09:43 +00:00
|
|
|
meta = {
|
2024-06-20 14:57:18 +00:00
|
|
|
description = "Dynamic real-time view of running eBPF programs";
|
2024-02-29 20:09:43 +00:00
|
|
|
homepage = "https://github.com/Netflix/bpftop";
|
|
|
|
license = lib.licenses.asl20;
|
|
|
|
maintainers = with lib.maintainers; [
|
|
|
|
_0x4A6F
|
2024-06-05 15:53:02 +00:00
|
|
|
luftmensch-luftmensch
|
2024-02-29 20:09:43 +00:00
|
|
|
mfrw
|
|
|
|
];
|
|
|
|
mainProgram = "bpftop";
|
|
|
|
};
|
|
|
|
}
|