bcc: install documentation not as an executable

in bcc/tools documentation was wrapped as an executable
This commit is contained in:
Jörg Thalheim 2016-09-07 22:44:06 +02:00 committed by Bjørn Forsman
parent c58f6e62de
commit e2991cc70b

View File

@ -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";