bcc: fix install

This commit is contained in:
Joerg Thalheim 2017-10-24 22:20:11 +01:00
parent 8ee94216d3
commit 59382564ff

View File

@ -28,7 +28,7 @@ stdenv.mkDerivation rec {
find $out/share/bcc/tools -type f -executable -print0 | \
while IFS= read -r -d $'\0' f; do
pythonLibs="$out/lib/python2.7/site-packages:${pythonPackages.netaddr}/lib/${python.libPrefix}/site-packages"
rm $out/bin/$(basename $f)
rm -f $out/bin/$(basename $f)
makeWrapper $f $out/bin/$(basename $f) \
--prefix LD_LIBRARY_PATH : $out/lib \
--prefix PYTHONPATH : "$pythonLibs"