anchor.diff:        fi
       }
   
  +    # Detect missing imports
  +    touch "$TMPDIR"/missing
  +    while read dir; do
  +      checkGoDir "$dir"
  +    done < <(getGoDirs "")
  +    missing="$(sort "$TMPDIR"/missing | uniq | awk '{print "  " $0}')"
  +    if [ -n "$missing" ]; then
  +      echo "Missing these inputs:" >&2
  +      echo "$missing" >&2
  +      exit 1
  +    fi
  +
  +    # Build go packages
       while read dir; do
         buildGoDir install "$dir"
       done < <(getGoDirs "")
  
positive.code:       local type;
        type="$1"
        if [ -n "$subPackages" ]; then
          echo "$subPackages" | tr ' ' '\n' | sed "s,\(^\| \|\n\),\1$goPackagePath/,g"
        else
          pushd go/src >/dev/null
          find "$goPackagePath" -type f -name \*$type.go -exec dirname {} \; | LC_ALL=c sort | uniq | grep -v "\(/_\|examples\|Godeps\)"
  
negative.code:   # I prefer to call this dev but propagatedBuildInputs expects $out to exist
    outputs = [ "out" "bin" ];
  
    # This breaks cgo packages like libseccomp-golang
    optimize = false;
  
    meta = with lib; {
      # Add default meta information
      platforms = with platforms;
  