package tamago { description = "a Go toolchain extended with support for bare metal execution"; website = "https://github.com/usbarmory/tamago-go"; anitya = 388872; version# = "1.27.0"; source = remoteGitHub { suffix = "usbarmory/tamago-go"; tag = "tamago-go"+version; checksum = "PV8a5fccqZifVUG7HJ6jTFk_0x6YIu1BSgYByCdJoTllm4NuQc9-Ngk_nuS7Nb3i"; }; env = [ "CC=cc", "GOCACHE=/tmp/gocache", "CGO_ENABLED=0", ]; enterSource = true; exec = generic { chdir = false; build = ` mkdir /work/system/ cp -r . /work/system/tamago cd /work/system/tamago/src chmod -R +w .. sed -i \ 's,/lib/ld-musl-` + linuxArch + `.so.1,/system/bin/linker,' \ cmd/link/internal/` + arch + `/obj.go rm \ os/root_unix_test.go \ cmd/cgo/internal/testsanitizers/tsan_test.go \ cmd/cgo/internal/testsanitizers/cshared_test.go set +u . ./make.bash "$@" --no-banner set -u `; check = "bash run.bash --no-rebuild\n"; install = "../bin/go tool dist banner # print build info"; }; inputs = [ bash, go ]; }