aboutsummaryrefslogtreecommitdiffhomepage
path: root/internal/rosa/make.go
diff options
context:
space:
mode:
authorOphestra <cat@gensokyo.uk>2026-03-04 18:01:18 +0900
committerOphestra <cat@gensokyo.uk>2026-03-05 00:20:27 +0900
commitd2c6d486b06073aa88ee1912d3587f657cd57304 (patch)
tree42e7df590ee8cda255e4cd35f9bd5ff7f9b2f94f /internal/rosa/make.go
parent6fdd800b2b421b32e7db373b576433126c4652a2 (diff)
internal/rosa: provide package metadata
This had to be done out-of-band because there was no way to efficiently represent these within Artifact. Signed-off-by: Ophestra <cat@gensokyo.uk>
Diffstat (limited to 'internal/rosa/make.go')
-rw-r--r--internal/rosa/make.go14
1 files changed, 11 insertions, 3 deletions
diff --git a/internal/rosa/make.go b/internal/rosa/make.go
index 891f6077..9af01275 100644
--- a/internal/rosa/make.go
+++ b/internal/rosa/make.go
@@ -7,7 +7,7 @@ import (
"hakurei.app/internal/pkg"
)
-func (t Toolchain) newMake() pkg.Artifact {
+func (t Toolchain) newMake() (pkg.Artifact, string) {
const (
version = "4.4.1"
checksum = "YS_B07ZcAy9PbaK5_vKGj64SrxO2VMpnMKfc9I0Q9IC1rn0RwOH7802pJoj2Mq4a"
@@ -24,9 +24,17 @@ cd "$(mktemp -d)"
nil, "https://ftpmirror.gnu.org/gnu/make/make-"+version+".tar.gz",
mustDecode(checksum),
pkg.TarGzip,
- )))
+ ))), version
+}
+func init() {
+ artifactsM[Make] = Metadata{
+ f: Toolchain.newMake,
+
+ Name: "make",
+ Description: "a tool which controls the generation of executables and other non-source files",
+ Website: "https://www.gnu.org/software/make/",
+ }
}
-func init() { artifactsF[Make] = Toolchain.newMake }
// MakeHelper is the [Make] build system helper.
type MakeHelper struct {