Merge pull request #61108 from thoughtpolice/nixpkgs/bpftool-init
bpftool: init at 5.1.1
This commit is contained in:
commit
562a475258
26
pkgs/os-specific/linux/bpftool/default.nix
Normal file
26
pkgs/os-specific/linux/bpftool/default.nix
Normal file
@ -0,0 +1,26 @@
|
|||||||
|
{ stdenv, fetchurl
|
||||||
|
, libopcodes, libbfd, libelf
|
||||||
|
, linuxPackages_latest
|
||||||
|
}:
|
||||||
|
|
||||||
|
stdenv.mkDerivation rec {
|
||||||
|
pname = "bpftool";
|
||||||
|
inherit (linuxPackages_latest.kernel) version src;
|
||||||
|
|
||||||
|
buildInputs = [ libopcodes libbfd libelf ];
|
||||||
|
|
||||||
|
preConfigure = ''
|
||||||
|
cd tools/bpf/bpftool
|
||||||
|
substituteInPlace ./Makefile \
|
||||||
|
--replace '/usr/local' "$out" \
|
||||||
|
--replace '/usr' "$out" \
|
||||||
|
--replace '/sbin' '/bin'
|
||||||
|
'';
|
||||||
|
|
||||||
|
meta = with stdenv.lib; {
|
||||||
|
description = "Debugging/program analysis tool for the eBPF subsystem";
|
||||||
|
license = [ licenses.gpl2 licenses.bsd2 ];
|
||||||
|
platforms = platforms.linux;
|
||||||
|
maintainers = with maintainers; [ thoughtpolice ];
|
||||||
|
};
|
||||||
|
}
|
@ -8821,6 +8821,8 @@ in
|
|||||||
buildkite-agent2 = callPackage ../development/tools/continuous-integration/buildkite-agent/2.x.nix { };
|
buildkite-agent2 = callPackage ../development/tools/continuous-integration/buildkite-agent/2.x.nix { };
|
||||||
buildkite-agent3 = callPackage ../development/tools/continuous-integration/buildkite-agent/3.x.nix { };
|
buildkite-agent3 = callPackage ../development/tools/continuous-integration/buildkite-agent/3.x.nix { };
|
||||||
|
|
||||||
|
bpftool = callPackage ../os-specific/linux/bpftool { };
|
||||||
|
|
||||||
byacc = callPackage ../development/tools/parsing/byacc { };
|
byacc = callPackage ../development/tools/parsing/byacc { };
|
||||||
|
|
||||||
cadre = callPackage ../development/tools/cadre { };
|
cadre = callPackage ../development/tools/cadre { };
|
||||||
|
Loading…
x
Reference in New Issue
Block a user