Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
50 lines
934 B
Nix
50 lines
934 B
Nix
{
|
|
lib,
|
|
rustPlatform,
|
|
fetchFromGitHub,
|
|
pkg-config,
|
|
elfutils,
|
|
zlib,
|
|
libbpf,
|
|
clangStdenv,
|
|
}:
|
|
let
|
|
pname = "bpftop";
|
|
version = "0.7.1";
|
|
in
|
|
rustPlatform.buildRustPackage.override { stdenv = clangStdenv; } {
|
|
inherit pname version;
|
|
src = fetchFromGitHub {
|
|
owner = "Netflix";
|
|
repo = "bpftop";
|
|
tag = "v${version}";
|
|
hash = "sha256-8vb32+wHOnADpIIfO9mMlGu7GdlA0hS9ij0zSLcrO7A=";
|
|
};
|
|
|
|
cargoHash = "sha256-euiI4R4nCgnwiBA22kzn0c91hjOr0IOOAyFkW5ZadIk=";
|
|
|
|
buildInputs = [
|
|
elfutils
|
|
libbpf
|
|
zlib
|
|
];
|
|
|
|
nativeBuildInputs = [ pkg-config ];
|
|
|
|
hardeningDisable = [
|
|
"zerocallusedregs"
|
|
];
|
|
|
|
meta = {
|
|
description = "Dynamic real-time view of running eBPF programs";
|
|
homepage = "https://github.com/Netflix/bpftop";
|
|
license = lib.licenses.asl20;
|
|
maintainers = with lib.maintainers; [
|
|
_0x4A6F
|
|
luftmensch-luftmensch
|
|
mfrw
|
|
];
|
|
mainProgram = "bpftop";
|
|
};
|
|
}
|