diff options
author | Tuomas Tynkkynen <tuomas.tynkkynen@iki.fi> | 2016-05-19 05:05:18 +0300 |
---|---|---|
committer | Tuomas Tynkkynen <tuomas.tynkkynen@iki.fi> | 2016-05-19 05:05:18 +0300 |
commit | e6e1e69b4f9518b77921272845d85404e9c5c31c (patch) | |
tree | c6858b459fc2f27278a8fe48325ada256b10f40a /pkgs | |
parent | cdff1f61f02740613aa5311372576793de8df8d0 (diff) | |
parent | 897df5b6a7ca6a8833b14d844266e8c1ad31f360 (diff) |
Merge pull request #14479 from ragnard/bcc
bcc: init at git-2016-05-18
Diffstat (limited to 'pkgs')
-rw-r--r-- | pkgs/os-specific/linux/bcc/default.nix | 38 | ||||
-rw-r--r-- | pkgs/top-level/all-packages.nix | 2 |
2 files changed, 40 insertions, 0 deletions
diff --git a/pkgs/os-specific/linux/bcc/default.nix b/pkgs/os-specific/linux/bcc/default.nix new file mode 100644 index 0000000000000..838c65dd1966a --- /dev/null +++ b/pkgs/os-specific/linux/bcc/default.nix @@ -0,0 +1,38 @@ +{ stdenv, fetchFromGitHub, makeWrapper, cmake, llvmPackages, kernel, + flex, bison, elfutils, python, pythonPackages, luajit, netperf, iperf }: + +stdenv.mkDerivation rec { + version = "git-2016-05-18"; + name = "bcc-${version}"; + + src = fetchFromGitHub { + owner = "iovisor"; + repo = "bcc"; + rev = "c7f317deb577d59007411e978ac21a2ea376358f"; + sha256 = "0jv4smy615kp7623pd61s46m52jjp6m47w0fjgr7s22qamra3g98"; + }; + + buildInputs = [ makeWrapper cmake llvmPackages.llvm llvmPackages.clang-unwrapped kernel + flex bison elfutils python pythonPackages.netaddr luajit netperf iperf + ]; + + cmakeFlags="-DBCC_KERNEL_MODULES_DIR=${kernel.dev}/lib/modules -DBCC_KERNEL_HAS_SOURCE_DIR=1"; + + postInstall = '' + mkdir -p $out/bin + for f in $out/share/bcc/tools\/*; do + ln -s $f $out/bin/$(basename $f) + wrapProgram $f \ + --prefix LD_LIBRARY_PATH : $out/lib \ + --prefix PYTHONPATH : $out/lib/python2.7/site-packages \ + --prefix PYTHONPATH : :${pythonPackages.netaddr}/lib/${python.libPrefix}/site-packages + done + ''; + + meta = with stdenv.lib; { + description = "Dynamic Tracing Tools for Linux"; + homepage = "https://iovisor.github.io/bcc/"; + license = licenses.asl20; + maintainers = with maintainers; [ ragge ]; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 63ca1c8258db2..8fb8ad3dc6929 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -10778,6 +10778,8 @@ in batman_adv = callPackage ../os-specific/linux/batman-adv {}; + bcc = callPackage ../os-specific/linux/bcc { }; + bbswitch = callPackage ../os-specific/linux/bbswitch {}; ati_drivers_x11 = callPackage ../os-specific/linux/ati-drivers { }; |