mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-20 20:53:48 +00:00
f3282c8d1e
* treewide: remove unused variables * making ofborg happy
27 lines
664 B
Nix
27 lines
664 B
Nix
{ stdenv
|
|
, 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 ];
|
|
};
|
|
}
|