anchor.diff:        boost
         curl
       ];
  -    builder = builtins.toFile "builder.sh" ''
  -      source $stdenv/setup
  -      tar xf $src
  -      cd rethinkdb-*
  +    builder = mkBuilder ''
  +      cp -rv --no-preserve=all $src/* .
         ./configure
         ${make} DEBUG=1
  -      test/run -j $NIX_BUILD_CORES '!long' ${skip_test_filter} || :
  +      test/run -j $NIX_BUILD_CORES '!long' ${skip_tests_filter} || :
         test -e test/results/*/test_results.html
         cp test/results/* $out
         echo report test_results $out/*/test_results.html > $out/nix-support/hydra-build-products
  
positive.code:     ];
    };
  
    fastTests = pkgs.stdenv.mkDerivation {
      name = "rethinkdb-unit-test-results-${src.version}";
      src = sourceTarball;
      buildInputs = with pkgs; [
        protobuf
        python27Full
  
negative.code: with (with builtins; {
    inherit toFile readFile concatStringsSep unsafeDiscardStringContext
      listToAttrs match head tail toJSON toPath elemAt getAttr length
      trace genList isString;
    foldl = foldl'; #'
    tracing = x: trace x x;
  });
  let
    pkgs = import <nixpkgs> {}; 
  
    mkBuilder = script: toFile "builder.sh" ("source $stdenv/setup\n" + script);
  
    scripts = concatStringsSep " " [
      "configure" "drivers/convert_protofile" "scripts/gen-version.sh"
      "mk/support/pkg/pkg.sh" "test/run" "external/v8_*/build/gyp/gyp"
    ];
    patchScripts = ''
      for script in ${scripts}; do
        cp $script $script.orig
  