package pkgsite { description = "a documentation server"; website = "https://pkg.go.dev/golang.org/x/pkgsite"; anitya = 393659; version# = "0.7.0"; source = remoteGit { url = "https://go.googlesource.com/pkgsite"; tag = "v"+version; checksum = "-ZJmXO-hvym8SiM4FlquQsqBEXD6L3tgxNcAGm6-HwZYKywoGQhRH0eTQUVGtLCl"; }; net = "GOMODCACHE=/tmp/cache go mod vendor && cp -r vendor/. /work"; checksumN = "FwsRwWvV4-30FiYsrbyzhZff6NlqriI6wAGlWeJkubzcNsIdG05sKd3QS_AbZD_L"; enter = true; writable = true; chmod = true; env = [ "GOCACHE=/tmp/cache" ]; exec = generic { chdir = false; build = "ln -sf ../net vendor && "+ "go build -mod=vendor "+ "-o /work"+prefix+"/bin/ "+ "./cmd/pkgsite\n"; check = "go test ./...\n"; }; tools = [ go, bash, ]; }