From cbe786a53062cd6f0f9f5ebe4cc607d7a44fe3ca Mon Sep 17 00:00:00 2001 From: Anton Fedotov Date: Wed, 9 Dec 2015 08:43:38 +0300 Subject: [PATCH] ccache: create symlinks to gcc lib & include in ccache-links directory This patch fixes compilation errors when using ccache wrapper: ``` cc1: error: /nix/store/19vvbsjs6l6j0r22albzhysxfvr94imf-ccache-links/lib/gcc/*/*/include-fixed: No such file or directory ``` --- pkgs/development/tools/misc/ccache/default.nix | 3 +++ 1 file changed, 3 insertions(+) diff --git a/pkgs/development/tools/misc/ccache/default.nix b/pkgs/development/tools/misc/ccache/default.nix index fb6d03c6e85a..ed87428f98df 100644 --- a/pkgs/development/tools/misc/ccache/default.nix +++ b/pkgs/development/tools/misc/ccache/default.nix @@ -49,6 +49,9 @@ stdenv.mkDerivation { ln -s ${gcc.cc}/bin/$executable $out/bin/$executable fi done + for file in $(ls ${gcc.cc} | grep -vw bin); do + ln -s ${gcc.cc}/$file $out/$file + done ''); };