nixpkgs/pkgs/by-name/bp/bpftop/package.nix

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

50 lines
944 B
Nix
Raw Normal View History

2024-05-18 14:41:04 +00:00
{
lib,
rustPlatform,
fetchFromGitHub,
pkg-config,
elfutils,
zlib,
libbpf,
clangStdenv,
}:
2024-05-18 14:41:04 +00:00
let
pname = "bpftop";
2024-07-29 12:41:09 +00:00
version = "0.5.2";
2024-05-18 14:41:04 +00:00
in
rustPlatform.buildRustPackage.override { stdenv = clangStdenv; } {
inherit pname version;
src = fetchFromGitHub {
owner = "Netflix";
repo = "bpftop";
2024-05-18 14:41:04 +00:00
rev = "refs/tags/v${version}";
2024-07-29 12:41:09 +00:00
hash = "sha256-WH/oCnkBcvoouBbkAcyawfAuNR3VsTl5+ZATLpi9d4w=";
};
2024-07-29 12:41:09 +00:00
cargoHash = "sha256-H9HapuIyJJOSQIR9IvFZaQ+Nz9M0MH12JwbY8r2l+JY=";
buildInputs = [
elfutils
libbpf
zlib
];
2024-05-18 14:41:04 +00:00
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;
2024-02-27 19:54:30 +00:00
maintainers = with lib.maintainers; [
_0x4A6F
2024-05-18 14:41:04 +00:00
luftmensch-luftmensch
2024-02-27 19:54:30 +00:00
mfrw
];
mainProgram = "bpftop";
};
}