anchor.diff:        "CC_${stdenv.hostPlatform.config}"="${ccForHost}" \
         "CXX_${stdenv.hostPlatform.config}"="${cxxForHost}" \
         cargo build \
  -        --release \
  +        --${buildType} \
           --target ${stdenv.hostPlatform.config} \
           --frozen ${concatStringsSep " " cargoBuildFlags}
       )
  
positive.code: , cargoUpdateHook ? ""
  , cargoDepsHook ? ""
  , cargoBuildFlags ? []
  
  , cargoVendorDir ? null
  , ... } @ args:
  
  assert cargoVendorDir == null -> cargoSha256 != "unset";
  
  let
    cargoDeps = if cargoVendorDir == null
  
negative.code:     # rename the output dir to a architecture independent one
      mapfile -t targets < <(find "$NIX_BUILD_TOP" -type d | grep '${releaseDir}$')
      for target in "''${targets[@]}"; do
        rm -rf "$target/../../${buildType}"
        ln -srf "$target" "$target/../../"
      done
  
  