azure-storage-azcopy: 10.27.1 -> 10.28.0 (#377459)
[NixPkgs.git] / pkgs / by-name / bp / bpftop / package.nix
bloba72478079904995f1d91c60ca910f9649201dd0b
2   lib,
3   rustPlatform,
4   fetchFromGitHub,
5   pkg-config,
6   elfutils,
7   zlib,
8   libbpf,
9   clangStdenv,
11 let
12   pname = "bpftop";
13   version = "0.5.2";
15 rustPlatform.buildRustPackage.override { stdenv = clangStdenv; } {
16   inherit pname version;
17   src = fetchFromGitHub {
18     owner = "Netflix";
19     repo = "bpftop";
20     tag = "v${version}";
21     hash = "sha256-WH/oCnkBcvoouBbkAcyawfAuNR3VsTl5+ZATLpi9d4w=";
22   };
24   cargoHash = "sha256-H9HapuIyJJOSQIR9IvFZaQ+Nz9M0MH12JwbY8r2l+JY=";
26   buildInputs = [
27     elfutils
28     libbpf
29     zlib
30   ];
32   nativeBuildInputs = [ pkg-config ];
34   hardeningDisable = [
35     "zerocallusedregs"
36   ];
38   meta = {
39     description = "Dynamic real-time view of running eBPF programs";
40     homepage = "https://github.com/Netflix/bpftop";
41     license = lib.licenses.asl20;
42     maintainers = with lib.maintainers; [
43       _0x4A6F
44       luftmensch-luftmensch
45       mfrw
46     ];
47     mainProgram = "bpftop";
48   };