diff --git a/pkgs/development/tools/misc/ccache/default.nix b/pkgs/development/tools/misc/ccache/default.nix index 0762d175e89d..f41969ebb43e 100644 --- a/pkgs/development/tools/misc/ccache/default.nix +++ b/pkgs/development/tools/misc/ccache/default.nix @@ -42,6 +42,11 @@ stdenv.mkDerivation { EOF chmod +x $out/bin/g++ fi + for executable in $(ls ${gcc.cc}/bin); do + if [ ! -x "$out/bin/$executable" ]; then + ln -s ${gcc.cc}/bin/$executable $out/bin/$executable + fi + done ''); };