aboutsummaryrefslogtreecommitdiffhomepage
path: root/internal/rosa/package/pkgsite.az
blob: a1e4a64ab1b41e104323a87d026a22413eccb75e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
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,
	];
}