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.

44 lines
777 B
Nix
Raw Normal View History

{ lib
, rustPlatform
, fetchFromGitHub
, pkg-config
, elfutils
, zlib
, libbpf
}:
rustPlatform.buildRustPackage rec {
pname = "bpftop";
2024-03-18 04:03:14 +00:00
version = "0.3.0";
src = fetchFromGitHub {
owner = "Netflix";
repo = "bpftop";
rev = "v${version}";
2024-03-18 04:03:14 +00:00
hash = "sha256-5MrfnKbrL8VoQBhtIcNmbkUfdjBXhTUW3d0GypvCuY8=";
};
2024-03-18 04:03:14 +00:00
cargoHash = "sha256-OjbsnhAY9KrGWgTDb3cxa1NIbdY2eaWlDXINC15Qk98=";
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 19:54:30 +00:00
maintainers = with lib.maintainers; [
_0x4A6F
mfrw
];
mainProgram = "bpftop";
};
}