diff options
| author | Ophestra <cat@gensokyo.uk> | 2026-12-01 21:02:28 +0900 |
|---|---|---|
| committer | Ophestra <cat@gensokyo.uk> | 2026-12-01 21:03:20 +0900 |
| commit | b04172dd0eac3255830ee93b9d4b68740d11a3a2 (patch) | |
| tree | 3fc72788aa97742592af863b381eae4881b9439f | |
| parent | ec52a96f2b479be8b880349ddfb0819382666962 (diff) | |
internal/rosa/package: pkgsitestaging
A development tool, not immediately useful for Rosa OS itself, but
mostly serves as a test case for net.
Signed-off-by: Ophestra <cat@gensokyo.uk>
| -rw-r--r-- | internal/rosa/package/pkgsite.az | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/internal/rosa/package/pkgsite.az b/internal/rosa/package/pkgsite.az new file mode 100644 index 00000000..a1e4a64a --- /dev/null +++ b/internal/rosa/package/pkgsite.az @@ -0,0 +1,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, + ]; +} |
