diff options
author | Robin Gloster <mail@glob.in> | 2017-08-09 19:43:46 +0200 |
---|---|---|
committer | Robin Gloster <mail@glob.in> | 2017-08-09 19:45:05 +0200 |
commit | 46a25ea7ea155193302e749e5d72513bee0a296b (patch) | |
tree | f310ed9cd08efd39df3ec028161a8ba305d3aacb /pkgs/os-specific/linux/bcc | |
parent | 771f28bac804dfb6ebf99122bfe4e5393d9c278d (diff) |
linuxPackages.bcc: fix using wrapProgram on .c file
Diffstat (limited to 'pkgs/os-specific/linux/bcc')
-rw-r--r-- | pkgs/os-specific/linux/bcc/default.nix | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/pkgs/os-specific/linux/bcc/default.nix b/pkgs/os-specific/linux/bcc/default.nix index 38f57e7663eb1..24686e73e23a0 100644 --- a/pkgs/os-specific/linux/bcc/default.nix +++ b/pkgs/os-specific/linux/bcc/default.nix @@ -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 ''; |