diff options
author | Muhammad Falak R Wani <falakreyaz@gmail.com> | 2024-02-27 08:55:15 +0530 |
---|---|---|
committer | Muhammad Falak R Wani <falakreyaz@gmail.com> | 2024-02-27 15:48:43 +0530 |
commit | 4060be5bf0ff9351a23e9494e4f882263e283daa (patch) | |
tree | 5410e11d1ded6f487796153120b0dae42c05288d /pkgs/by-name/bp | |
parent | 1f4f31c435f2483ee69ca1a68996f6012a4d402c (diff) |
bpftop: init at 0.2.1
Signed-off-by: Muhammad Falak R Wani <falakreyaz@gmail.com>
Diffstat (limited to 'pkgs/by-name/bp')
-rw-r--r-- | pkgs/by-name/bp/bpftop/package.nix | 40 |
1 files changed, 40 insertions, 0 deletions
diff --git a/pkgs/by-name/bp/bpftop/package.nix b/pkgs/by-name/bp/bpftop/package.nix new file mode 100644 index 0000000000000..75508e3e2f53e --- /dev/null +++ b/pkgs/by-name/bp/bpftop/package.nix @@ -0,0 +1,40 @@ +{ lib +, rustPlatform +, fetchFromGitHub +, pkg-config +, elfutils +, zlib +, libbpf +}: + +rustPlatform.buildRustPackage rec { + pname = "bpftop"; + version = "0.2.1"; + + src = fetchFromGitHub { + owner = "Netflix"; + repo = "bpftop"; + rev = "v${version}"; + hash = "sha256-HP8ubzCfBNgISrAyLACylH4PHxLhJPzIQFmIWEL5gjo="; + }; + + cargoHash = "sha256-+zh7GZ/fbhxLNQkkHFZqtJxy2IeS+KX5s2Qi5N21u/0="; + + 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; + maintainers = with lib.maintainers; [ mfrw ]; + mainProgram = "bpftop"; + }; +} |