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