(package
    (name "go-1.23")
    (version "1.23.0")
    (homepage "https://go.dev/")
    (dependencies go-1.21)
    (src (tar
        (url "https://go.dev/dl/go1.23.0.src.tar.gz")
        (dir "go/src")
        (blake3 "8bfbcfc1a552e949d5562514c2eed8ca65029c3745d92d204d55db87147dc172")))
    (build
        (shell "GOROOT_BOOTSTRAP=/opt/go GOROOT_FINAL=/opt/go ./make.bash")
        (shell "rm -rf /opt/go || true")
        (shell "cd ../.. && mv go /opt/ && ln -sf /opt/go/bin/go /usr/bin/go || true")))
