anchor.diff:    ccForHost="${stdenv.cc}/bin/${stdenv.cc.targetPrefix}cc";
     cxxForHost="${stdenv.cc}/bin/${stdenv.cc.targetPrefix}c++";
     releaseDir = "target/${rustTarget}/${buildType}";
  +  tmpDir = "${releaseDir}-tmp";
   
     # Specify the stdenv's `diff` by abspath to ensure that the user's build
     # inputs do not cause us to find the wrong `diff`.
  
positive.code:     mkdir -p $out/bin $out/lib
  
      xargs -r cp -t $out/bin <<< $bins
      find $releaseDir \
        -maxdepth 1 \
        -regex ".*\.\(so.[0-9.]+\|so\|a\|dylib\)" \
        -print0 | xargs -r -0 cp -t $out/lib
  
negative.code:     # This needs to be done after postBuild: packages like `cargo` do a pushd/popd in
      # the pre/postBuild-hooks that need to be taken into account before gathering
      # all binaries to install.
      mkdir -p $tmpDir
      cp -r $releaseDir/* $tmpDir/
      bins=$(find $tmpDir \
        -maxdepth 1 \
        -type f \
        -executable ! \( -regex ".*\.\(so.[0-9.]+\|so\|a\|dylib\)" \))
  