From e2991cc70bc4c953570045ab29bde4734d7476ec Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B6rg=20Thalheim?= Date: Wed, 7 Sep 2016 22:44:06 +0200 Subject: [PATCH] bcc: install documentation not as an executable in bcc/tools documentation was wrapped as an executable --- pkgs/os-specific/linux/bcc/default.nix | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/pkgs/os-specific/linux/bcc/default.nix b/pkgs/os-specific/linux/bcc/default.nix index 98d790068e1a..d6593b4ee500 100644 --- a/pkgs/os-specific/linux/bcc/default.nix +++ b/pkgs/os-specific/linux/bcc/default.nix @@ -17,17 +17,21 @@ stdenv.mkDerivation rec { ]; cmakeFlags="-DBCC_KERNEL_MODULES_DIR=${kernel.dev}/lib/modules -DBCC_KERNEL_HAS_SOURCE_DIR=1"; - + postInstall = '' - mkdir -p $out/bin + mkdir -p $out/bin $out/share + rm -r $out/share/bcc/tools/{old,doc/CMakeLists.txt} + mv $out/share/bcc/tools/doc $out/share + mv $out/share/bcc/man $out/share/ + for f in $out/share/bcc/tools\/*; do - ln -s $f $out/bin/$(basename $f) + 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";