···2728 doCheck = !stdenv.isDarwin;
2930- passthru = let
31- unwrappedCC = stdenv.cc.cc;
32- in {
33 # A derivation that provides gcc and g++ commands, but that
34 # will end up calling ccache for the given cacheDir
35- links = extraConfig: stdenv.mkDerivation rec {
36 name = "ccache-links";
37 passthru = {
38 isClang = unwrappedCC.isClang or false;
···2728 doCheck = !stdenv.isDarwin;
2930+ passthru = {
0031 # A derivation that provides gcc and g++ commands, but that
32 # will end up calling ccache for the given cacheDir
33+ links = {unwrappedCC, extraConfig}: stdenv.mkDerivation rec {
34 name = "ccache-links";
35 passthru = {
36 isClang = unwrappedCC.isClang or false;
+2-2
pkgs/top-level/all-packages.nix
···9009 # };
9010 # You can use a different directory, but whichever directory you choose
9011 # should be owned by user root, group nixbld with permissions 0770.
9012- ccacheWrapper = makeOverridable ({ extraConfig ? "" }:
9013- wrapCC (ccache.links extraConfig)) {};
9014 ccacheStdenv = lowPrio (overrideCC stdenv buildPackages.ccacheWrapper);
90159016 cccc = callPackage ../development/tools/analysis/cccc { };
···9009 # };
9010 # You can use a different directory, but whichever directory you choose
9011 # should be owned by user root, group nixbld with permissions 0770.
9012+ ccacheWrapper = makeOverridable ({ extraConfig ? "", unwrappedCC ? stdenv.cc.cc }:
9013+ wrapCC (ccache.links {inherit unwrappedCC extraConfig;})) {};
9014 ccacheStdenv = lowPrio (overrideCC stdenv buildPackages.ccacheWrapper);
90159016 cccc = callPackage ../development/tools/analysis/cccc { };