linuxPackages.bcc: fix using wrapProgram on .c file

This commit is contained in:
Robin Gloster 2017-08-09 19:43:46 +02:00
parent 771f28bac8
commit 46a25ea7ea
No known key found for this signature in database
GPG key ID: 5E4C836C632C2882

View file

@ -25,11 +25,13 @@ stdenv.mkDerivation rec {
mv $out/share/bcc/man $out/share/
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
if [ -x $f ]; then
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
fi
done
'';