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:     # https://www.boost.org/doc/libs/1_66_0/libs/context/doc/html/context/architectures.html
      "abi=${if stdenv.hostPlatform.parsed.cpu.family == "arm" then "aapcs"
             else if stdenv.hostPlatform.isWindows then "ms"
             else if stdenv.hostPlatform.isMips then "o32"
             else "sysv"}"
    ] ++ optional (link != "static") "runtime-link=${runtime-link}"
      ++ optional (variant == "release") "debug-symbols=off"
  
negative.code:                  ++ optional ((versionOlder version "1.57") || version == "1.58") "x86_64-darwin"
                   ++ optionals (versionOlder version "1.73") lib.platforms.riscv;
      maintainers = with maintainers; [ hjones2199 ];
  
      broken =
        # boost-context lacks support for the N32 ABI on mips64.  The build
        # will succeed, but packages depending on boost-context will fail with
        # a very cryptic error message.
        stdenv.hostPlatform.isMips64n32 ||
        # the patch above does not apply cleanly to pre-1.65 boost
        (stdenv.hostPlatform.isMips64n64 && (versionOlder version "1.65"));
    };
  
    preConfigure = optionalString useMpi ''
  