From 16aadf2d79025de6a9888a81991909859c4a2f91 Mon Sep 17 00:00:00 2001 From: Anton Fedotov Date: Wed, 29 Jul 2015 12:03:39 +0300 Subject: [PATCH] ccache: create symlinks to gcc utils in ccache-links bin directory --- pkgs/development/tools/misc/ccache/default.nix | 5 +++++ 1 file changed, 5 insertions(+) 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 ''); };