ccache-links is wrapped, so it needs a gcc attribute

This commit is contained in:
Shea Levy
2015-03-24 08:59:34 -04:00
parent 85704cd9d3
commit f80e342e83
@@ -14,7 +14,7 @@ stdenv.mkDerivation {
passthru = { passthru = {
# A derivation that provides gcc and g++ commands, but that # A derivation that provides gcc and g++ commands, but that
# will end up calling ccache for the given cacheDir # will end up calling ccache for the given cacheDir
links = extraConfig : (runCommand "ccache-links" { } links = extraConfig : (runCommand "ccache-links" { passthru.gcc = gcc; }
'' ''
mkdir -p $out/bin mkdir -p $out/bin
if [ -x "${gcc.cc}/bin/gcc" ]; then if [ -x "${gcc.cc}/bin/gcc" ]; then