anchor.diff:      patch -p1 < libbcc-path.patch
     '';
   
  -  preConfigure = ''
  -    chmod -R u+w ../libbpf/
  -    rmdir src/cc/libbpf
  -    (cd src/cc && ln -svf ../../../libbpf/ libbpf)
  -  '';
  -
     postInstall = ''
       mkdir -p $out/bin $out/share
       rm -r $out/share/bcc/tools/old
  
positive.code:       if [ ! -e $bin ]; then
          ln -s $f $bin
        fi
      done
  
      sed -i -e "s!lib=.*!lib=$out/bin!" $out/bin/{java,ruby,node,python}gc
  
negative.code: { stdenv, fetchFromGitHub, makeWrapper, cmake, llvmPackages, kernel
  , flex, bison, elfutils, python, luajit, netperf, iperf, libelf
  , systemtap, bash
  }:
  
  python.pkgs.buildPythonApplication rec {
    version = "0.12.0";
    name = "bcc-${version}";
  
    src = fetchFromGitHub {
      owner  = "iovisor";
      repo   = "bcc";
      rev    = "v${version}";
      sha256 = "1r2yjxam23k56prsvjhqf8i8d3irhcvmy0bly6x23h1jc3zc6yym";
      fetchSubmodules = true;
    };
    format = "other";
  
    buildInputs = with llvmPackages; [
      llvm clang-unwrapped kernel
      elfutils luajit netperf iperf
      systemtap.stapBuild flex bash
    ];
  
    patches = [
  