2024-02-27 04:25:15 +01:00
|
|
|
{ lib
|
|
|
|
, rustPlatform
|
|
|
|
, fetchFromGitHub
|
|
|
|
, pkg-config
|
|
|
|
, elfutils
|
|
|
|
, zlib
|
|
|
|
, libbpf
|
|
|
|
}:
|
|
|
|
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
|
|
pname = "bpftop";
|
2024-04-27 14:24:01 +02:00
|
|
|
version = "0.4.2";
|
2024-02-27 04:25:15 +01:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "Netflix";
|
|
|
|
repo = "bpftop";
|
|
|
|
rev = "v${version}";
|
2024-04-27 14:24:01 +02:00
|
|
|
hash = "sha256-zYCv3L+xDFAJ4Wo9xwfHJrqPQUv5KiFDbhCdC1Z6qNo=";
|
2024-02-27 04:25:15 +01:00
|
|
|
};
|
|
|
|
|
2024-04-27 14:24:01 +02:00
|
|
|
cargoHash = "sha256-6uPfMxjSrSGrAgJcvzTY/i1ckoW/wIi7D5noOafCvZE=";
|
2024-02-27 04:25:15 +01:00
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
elfutils
|
|
|
|
libbpf
|
|
|
|
zlib
|
|
|
|
];
|
|
|
|
|
|
|
|
nativeBuildInputs = [
|
|
|
|
pkg-config
|
|
|
|
];
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "A dynamic real-time view of running eBPF programs";
|
|
|
|
homepage = "https://github.com/Netflix/bpftop";
|
|
|
|
license = lib.licenses.asl20;
|
2024-02-27 20:54:30 +01:00
|
|
|
maintainers = with lib.maintainers; [
|
|
|
|
_0x4A6F
|
|
|
|
mfrw
|
|
|
|
];
|
2024-02-27 04:25:15 +01:00
|
|
|
mainProgram = "bpftop";
|
|
|
|
};
|
|
|
|
}
|