anchor.diff:        cp ${bzip2_.bin}/bin/bzip2 $out/on-server
   
         chmod u+w $out/on-server/*
  -      strip $out/on-server/*
  +      ${stdenv.cc.targetPrefix}strip $out/on-server/*
         nuke-refs $out/on-server/*
   
         (cd $out/pack && (find | cpio -o -H newc)) | bzip2 > $out/on-server/bootstrap-tools.cpio.bz2
  
positive.code:       for i in $out/bin/*; do
          if test -x $i -a ! -L $i; then
            chmod +w $i
            strip $i || true
          fi
        done
  
        for i in $out/bin/* $out/lib/*.dylib $out/lib/clang/*/lib/darwin/*.dylib $out/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation; do
          if test -x "$i" -a ! -L "$i"; then
            echo "Adding rpath to $i"
            rpathify $i
          fi
        done
  
        nuke-refs $out/lib/*
        nuke-refs $out/lib/system/*
        nuke-refs $out/lib/clang/*/lib/darwin/*
        nuke-refs $out/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation
  
        mkdir $out/.pack
  
negative.code: 
    # The ultimate test: bootstrap a whole stdenv from the tools specified above and get a package set out of it
    test-pkgs = import test-pkgspath {
      # if the bootstrap tools are for another platform, we should be testing
      # that platform.
      system = if crossSystem != null then crossSystem else system;
  
      stdenvStages = args: let
          args' = args // { inherit bootstrapFiles; };
        in (import (test-pkgspath + "/pkgs/stdenv/darwin") args').stagesDarwin;
  