Skip to content

Commit

Permalink
bcc: add systemtap dep, and fix build revision
Browse files Browse the repository at this point in the history
Signed-off-by: Austin Seipp <aseipp@pobox.com>
  • Loading branch information
thoughtpolice committed Feb 20, 2018
1 parent 38bc86a commit 4166691
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions pkgs/os-specific/linux/bcc/default.nix
Original file line number Diff line number Diff line change
@@ -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";
Expand All @@ -15,6 +17,7 @@ stdenv.mkDerivation rec {
buildInputs = [
llvmPackages.llvm llvmPackages.clang-unwrapped kernel
elfutils python pythonPackages.netaddr luajit netperf iperf
systemtap.stapBuild
];

patches = [
Expand All @@ -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
Expand Down

0 comments on commit 4166691

Please sign in to comment.