linuxPackages.bpftrace: 0.9.4 -> 0.11.0

This fixes the `bcc` include directory (which was improperly set, and
warned about at build-time, but masked by some backwards compat code,
apparently) and also includes some missing libraries in `buildInputs`

Signed-off-by: Austin Seipp <aseipp@pobox.com>
This commit is contained in:
Austin Seipp 2020-08-31 17:40:18 -05:00
parent 5e91e66591
commit 6fb7b16046
No known key found for this signature in database
GPG Key ID: 25D2038DEB08021D

View File

@ -1,17 +1,18 @@
{ stdenv, fetchFromGitHub
, cmake, pkgconfig, flex, bison
, llvmPackages, kernel, elfutils, libelf, bcc
, llvmPackages, kernel, elfutils
, libelf, libbfd, libbpf, libopcodes, bcc
}:
stdenv.mkDerivation rec {
pname = "bpftrace";
version = "0.9.4";
version = "0.11.0";
src = fetchFromGitHub {
owner = "iovisor";
repo = "bpftrace";
rev = "refs/tags/v${version}";
sha256 = "00fvkq3razwacnpb82zkpv63dgyigbqx3gj6g0ka94nwa74i5i77";
sha256 = "02f2r731yj3fdc8341id1ksk4dma9rwm2765n2xgx2ldrrz5823y";
};
enableParallelBuilding = true;
@ -19,6 +20,7 @@ stdenv.mkDerivation rec {
buildInputs = with llvmPackages;
[ llvm clang-unwrapped
kernel elfutils libelf bcc
libbpf libbfd libopcodes
];
nativeBuildInputs = [ cmake pkgconfig flex bison ]
@ -41,7 +43,7 @@ stdenv.mkDerivation rec {
#
cmakeFlags =
[ "-DBUILD_TESTING=FALSE"
"-DLIBBCC_INCLUDE_DIRS=${bcc}/include/bcc"
"-DLIBBCC_INCLUDE_DIRS=${bcc}/include"
];
# nuke the example/reference output .txt files, for the included tools,