bcc: add systemtap dep, and fix build revision

Signed-off-by: Austin Seipp <aseipp@pobox.com>
This commit is contained in:
Austin Seipp 2018-02-20 13:13:10 -06:00
parent 38bc86ac6c
commit 4166691813

View file

@ -1,5 +1,7 @@
{ stdenv, fetchFromGitHub, fetchpatch, makeWrapper, cmake, llvmPackages, kernel
, flex, bison, elfutils, python, pythonPackages, luajit, netperf, iperf, libelf }:
, flex, bison, elfutils, python, pythonPackages, luajit, netperf, iperf, libelf
, systemtap
}:
stdenv.mkDerivation rec {
version = "0.5.0";
@ -15,6 +17,7 @@ stdenv.mkDerivation rec {
buildInputs = [
llvmPackages.llvm llvmPackages.clang-unwrapped kernel
elfutils python pythonPackages.netaddr luajit netperf iperf
systemtap.stapBuild
];
patches = [
@ -29,7 +32,12 @@ stdenv.mkDerivation rec {
# libelf is incompatible with elfutils-libelf
++ stdenv.lib.filter (x: x != libelf) kernel.moduleBuildDependencies;
cmakeFlags="-DBCC_KERNEL_MODULES_DIR=${kernel.dev}/lib/modules";
cmakeFlags =
[ "-DBCC_KERNEL_MODULES_DIR=${kernel.dev}/lib/modules"
"-DREVISION=${version}"
"-DENABLE_USDT=ON"
"-DENABLE_CPP_API=ON"
];
postInstall = ''
mkdir -p $out/bin $out/share