anchor.diff:        platforms = platforms.unix;
         license = licenses.bsd2;
       };
  +  } // lib.optionalAttrs stdenv'.hasCC {
  +    # TODO should CC wrapper set this?
  +    CPP = "${stdenv'.cc.targetPrefix}cpp";
     } // lib.optionalAttrs stdenv'.isDarwin {
       MKRELRO = "no";
     } // lib.optionalAttrs (stdenv'.cc.isClang or false) {
  
positive.code:     ];
      buildInputs = with self; compatIfNeeded;
  
      OBJCOPY = if stdenv.isDarwin then "true" else "objcopy";
      HOST_SH = "${buildPackages.bash}/bin/sh";
  
      MACHINE_ARCH = {
        i686 = "i386";
  
negative.code:     }.${stdenv'.hostPlatform.parsed.cpu.name}
        or stdenv'.hostPlatform.parsed.cpu.name;
  
      BSD_PATH = attrs.path;
  
      strictDeps = true;
  