anchor.diff:      passthru.tests = {
         solcWithTests = solc.overrideAttrs (attrs: { doCheck = true; });
       };
  +  } else gccStdenv.mkDerivation rec {
  +    inherit pname version meta;
   
  -    meta = with lib; {
  -      description = "Compiler for Ethereum smart contract language Solidity";
  -      homepage = "https://github.com/ethereum/solidity";
  -      license = licenses.gpl3;
  -      maintainers = with maintainers; [ dbrock akru lionello sifmelcara ];
  +    src = pkgs.fetchurl {
  +      url = "https://github.com/ethereum/solidity/releases/download/v${version}/solc-macos";
  +      sha256 = "sha256-FNTvAT6oKtlekf2Um3+nt4JxpIP/GnnEPWzFi4JvW+o=";
       };
  +    dontUnpack = true;
  +
  +    installPhase = ''
  +      runHook preInstall
  +
  +      mkdir -p $out/bin
  +      cp ${src} $out/bin/solc
  +      chmod +x $out/bin/solc
  +
  +      runHook postInstall
  +    '';
     };
   in
     solc
  
positive.code: { lib, gccStdenv, fetchzip
  , boost
  , cmake
  , coreutils
  
negative.code:     sha256 = "1mnvxqsan034d2jiqnw2yvkljl7lwvhakmj5bscwp1fpkn655bbw";
    };
  
    pname = "solc";
    version = "0.8.13";
    meta = with lib; {
      description = "Compiler for Ethereum smart contract language Solidity";
      homepage = "https://github.com/ethereum/solidity";
      license = licenses.gpl3;
      maintainers = with maintainers; [ dbrock akru lionello sifmelcara ];
    };
  
    solc = if gccStdenv.isLinux then gccStdenv.mkDerivation rec {
      inherit pname version meta;
  
      # upstream suggests avoid using archive generated by github
      src = fetchzip {
  