From d2c6d486b06073aa88ee1912d3587f657cd57304 Mon Sep 17 00:00:00 2001 From: Ophestra Date: Wed, 4 Mar 2026 18:01:18 +0900 Subject: 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 --- internal/rosa/make.go | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) (limited to 'internal/rosa/make.go') 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 { -- cgit v1.3.1