package go { description = "the Go programming language toolchain"; website = "https://go.dev"; anitya = 1227; version# = "1.27.3"; source = remoteTar { url = "https://go.dev/dl/go"+version+".src.tar.gz"; checksum = "lyIgV0TTDx3yF3__cI507YUvU1ubQ2-6JwCLbycUdKKZlbJWWIf_8sfPbIHCev_n"; compress = gzip; }; env = [ "CC=cc", "GOCACHE=/tmp/gocache", "GOROOT_BOOTSTRAP="+prefix+"/go", "TMPDIR=/dev/shm/go", ]; enterSource = true; exec = generic { chdir = false; build = ` mkdir /work`+prefix+`/ "${TMPDIR}" cp -r . /work`+prefix+`/go cd /work`+prefix+`/go/src/ chmod -R +w .. set +u . ./make.bash "$@" --no-banner set -u `; check = ` mkdir /lib && ln -s ../system/lib/ld-musl-`+llvmArch+`.so.1 /lib/ rm \ os/root_unix_test.go \ runtime/crash_cgo_test.go \ cmd/cgo/internal/testsanitizers/tsan_test.go \ cmd/cgo/internal/testsanitizers/cshared_test.go bash run.bash --no-rebuild `; install = ` ../bin/go tool dist banner # print build info mkdir /work`+prefix+`/bin ln -s \ ../go/bin/go \ ../go/bin/gofmt \ /work`+prefix+`/bin `; }; tools = [ bash, go-bootstrap ]; }