(package
    (name "go-1.19")
    (version "1.19")
    (homepage "https://go.dev/")
    (dependencies go-1.4)
    (src (tar
        (url "https://go.dev/dl/go1.19.src.tar.gz")
        (dir "go/src")
        (blake3 "4eb334d36c9fb17148b17f0a83cde8bc1eb425c0c2c83a7a1c9f4f09ce201b7f")))
    (build
        (shell "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")))
