anchor.diff:      configureScript="$(realpath ./mach) configure"
       export MOZBUILD_STATE_PATH=$(pwd)/mozbuild
   
  -  '' + (lib.optionalString googleAPISupport ''
  +  '' + (lib.optionalString (lib.versionAtLeast version "95.0") ''
  +    # RBox WASM Sandboxing
  +    export WASM_CC=${pkgsCross.wasi32.stdenv.cc}/bin/${pkgsCross.wasi32.stdenv.cc.targetPrefix}cc
  +    export WASM_CXX=${pkgsCross.wasi32.stdenv.cc}/bin/${pkgsCross.wasi32.stdenv.cc.targetPrefix}c++
  +  '') + (lib.optionalString googleAPISupport ''
       # Google API key used by Chromium and Firefox.
       # Note: These are for NixOS/nixpkgs use ONLY. For your own distribution,
       # please get your own set of keys.
  
positive.code: , rust-cbindgen, nodejs, nasm, fetchpatch
  , gnum4
  , gtk3, wrapGAppsHook
  , debugBuild ? false
  
  ### optionals
  
  
negative.code:                 })
                  else stdenv;
  
    # Compile the wasm32 sysroot to build the RLBox Sandbox
    # https://hacks.mozilla.org/2021/12/webassembly-and-back-again-fine-grained-sandboxing-in-firefox-95/
    # We only link c++ libs here, our compiler wrapper can find wasi libc and crt itself.
    wasiSysRoot = runCommand "wasi-sysroot" {} ''
      mkdir -p $out/lib/wasm32-wasi
      for lib in ${pkgsCross.wasi32.llvmPackages.libcxx}/lib/* ${pkgsCross.wasi32.llvmPackages.libcxxabi}/lib/*; do
        ln -s $lib $out/lib/wasm32-wasi
      done
    '';
  in
  
  buildStdenv.mkDerivation ({
  