anchor.diff:      # TODO: make this unconditional
     ] ++ optionals (stdenv.hostPlatform != stdenv.buildPlatform) [
       "address-model=${toString stdenv.hostPlatform.parsed.cpu.bits}"
  -    "architecture=${toString stdenv.hostPlatform.parsed.cpu.family}"
  +    "architecture=${if stdenv.hostPlatform.isMips64 then "mips64" else toString stdenv.hostPlatform.parsed.cpu.family}"
       "binary-format=${toString stdenv.hostPlatform.parsed.kernel.execFormat.name}"
       "target-os=${toString stdenv.hostPlatform.parsed.kernel.name}"
   
  
positive.code:                  ++ optional ((versionOlder version "1.57") || version == "1.58") "x86_64-darwin"
                   ++ optionals (versionOlder version "1.73") lib.platforms.riscv;
      maintainers = with maintainers; [ hjones2199 ];
    };
  
    preConfigure = optionalString useMpi ''
  
negative.code:       sha256 = "15d2a636hhsb1xdyp44x25dyqfcaws997vnp9kl1mhzvxjzz7hb0";
        stripLen = 1;
      })
    ++ optional (versionAtLeast version "1.65" && versionOlder version "1.70") (fetchpatch {
      # support for Mips64n64 appeared in boost-context 1.70; this patch won't apply to pre-1.65 cleanly
      url = "https://github.com/boostorg/context/commit/e3f744a1862164062d579d1972272d67bdaa9c39.patch";
      sha256 = "sha256-qjQy1b4jDsIRrI+UYtcguhvChrMbGWO0UlEzEJHYzRI=";
      stripLen = 1;
      extraPrefix = "libs/context/";
    })
    ++ optional (and (versionAtLeast version "1.70") (!versionAtLeast version "1.73")) ./cmake-paths.patch
    ++ optional (versionAtLeast version "1.73") ./cmake-paths-173.patch
    ++ optional (version == "1.77.0") (fetchpatch {
  