bpftool: fix compilation with 5.5

This commit is contained in:
Jörg Thalheim 2020-01-30 14:11:11 +00:00
parent 5b74cd2186
commit 6f7c3fbff7
No known key found for this signature in database
GPG key ID: 003F2096411B5F92

View file

@ -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" \