git.iko.soy/typeable/nixpkgs
on master help sign in
ccache: fix references to stdenv.cc.cc.isClang

afa64a60bc73a5b5b1340f9ec9daae198d49e5d2 breaks the tarball job https://hydra.nixos.org/build/40817224/nixlog/1/raw The problem is that there is a stdenv.cc.cc.isGNU but no corresponding stdenv.cc.cc.isClang. The "correct" fix would be to add stdenv.cc.cc.isClang but this is simpler.

commit634824d50be0fbccd30359366db8a150eb25dabd authorJoachim Fasting <joachifm@fastmail.fm> dateSun 18 Sep 2016, 15:34 (10 years ago) parente2659de
1 file changed+4−3
pkgs/development/tools/misc/ccache/default.nix+4−3
pkgs/development/tools/misc/ccache/default.nix+4−3
@@ -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 = ''