anchor.diff:    # I'm not sure what go wants from its 'src', but the go installation manual
     # describes an installation keeping the src.
     preUnpack = ''
  +    topdir=$PWD
       mkdir -p $out/share
       cd $out/share
     '';
  
positive.code:     sed -i '/TestDisasmExtld/areturn' src/cmd/objdump/objdump_test.go
  
      touch $TMPDIR/group $TMPDIR/hosts $TMPDIR/passwd
    '';
  
    patches = [
      ./remove-tools-1.5.patch
    ]
    # -ldflags=-s is required to compile on Darwin, see
    # https://github.com/golang/go/issues/11994
    ++ stdenv.lib.optional stdenv.isDarwin ./strip.patch;
  
    GOOS = if stdenv.isDarwin then "darwin" else "linux";
    GOARCH = if stdenv.isDarwin then "amd64"
  
negative.code: { stdenv, lib, fetchurl, tzdata, iana_etc, go_1_4, runCommand
  , perl, which, pkgconfig, patch, fetchpatch
  , pcre
  , Security, Foundation, bash }:
  
  let
    goBootstrap = runCommand "go-bootstrap" {} ''
  