bpftool: fix compilation with 5.5
This commit is contained in:
parent
5b74cd2186
commit
6f7c3fbff7
@ -1,15 +1,19 @@
|
||||
{ stdenv
|
||||
, libopcodes, libbfd, libelf
|
||||
, linuxPackages_latest, zlib
|
||||
, python3
|
||||
}:
|
||||
|
||||
stdenv.mkDerivation {
|
||||
pname = "bpftool";
|
||||
inherit (linuxPackages_latest.kernel) version src;
|
||||
|
||||
nativeBuildInputs = [ python3 ];
|
||||
buildInputs = [ libopcodes libbfd libelf zlib ];
|
||||
|
||||
preConfigure = ''
|
||||
patchShebangs scripts/bpf_helpers_doc.py
|
||||
|
||||
cd tools/bpf/bpftool
|
||||
substituteInPlace ./Makefile \
|
||||
--replace '/usr/local' "$out" \
|
||||
|
Loading…
Reference in New Issue
Block a user