nixpkgs/pkgs/os-specific/linux/bpftool/default.nix
Austin Seipp 46b7153d57
bpftool: init at 5.1.1
Signed-off-by: Austin Seipp <aseipp@pobox.com>
2019-05-12 22:12:30 -05:00

26 lines
674 B
Nix

{ 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 ];
};
}