@@ -19,15 +19,16 @@ let ccache = stdenv.mkDerivation rec {
1919
2020 passthru = let
2121 cc = stdenv.cc.cc;
22− ccname = if stdenv.cc.cc.isClang or false then "clang" else "gcc";
23− cxxname = if stdenv.cc.cc.isClang or false then "clang++" else "g++";
22+ ccname = if stdenv.cc.isClang then "clang" else "gcc";
23+ cxxname = if stdenv.cc.isClang then "clang++" else "g++";
2424 in {
2525 # A derivation that provides gcc and g++ commands, but that
2626 # will end up calling ccache for the given cacheDir
2727 links = extraConfig: stdenv.mkDerivation rec {
2828 name = "ccache-links";
2929 passthru = {
30− inherit (cc) isGNU isClang;
30+ inherit (stdenv.cc) isClang;
31+ inherit (cc) isGNU;
3132 };
3233 inherit (cc) lib;
3334 buildCommand = ''