···27272828 doCheck = !stdenv.isDarwin;
29293030- passthru = let
3131- unwrappedCC = stdenv.cc.cc;
3232- in {
3030+ passthru = {
3331 # A derivation that provides gcc and g++ commands, but that
3432 # will end up calling ccache for the given cacheDir
3535- links = extraConfig: stdenv.mkDerivation rec {
3333+ links = {unwrappedCC, extraConfig}: stdenv.mkDerivation rec {
3634 name = "ccache-links";
3735 passthru = {
3836 isClang = unwrappedCC.isClang or false;
+2-2
pkgs/top-level/all-packages.nix
···90099009 # };
90109010 # You can use a different directory, but whichever directory you choose
90119011 # should be owned by user root, group nixbld with permissions 0770.
90129012- ccacheWrapper = makeOverridable ({ extraConfig ? "" }:
90139013- wrapCC (ccache.links extraConfig)) {};
90129012+ ccacheWrapper = makeOverridable ({ extraConfig ? "", unwrappedCC ? stdenv.cc.cc }:
90139013+ wrapCC (ccache.links {inherit unwrappedCC extraConfig;})) {};
90149014 ccacheStdenv = lowPrio (overrideCC stdenv buildPackages.ccacheWrapper);
9015901590169016 cccc = callPackage ../development/tools/analysis/cccc { };