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/flex.go | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) (limited to 'internal/rosa/flex.go') diff --git a/internal/rosa/flex.go b/internal/rosa/flex.go index e6fef284..fae77684 100644 --- a/internal/rosa/flex.go +++ b/internal/rosa/flex.go @@ -4,7 +4,7 @@ import ( "hakurei.app/internal/pkg" ) -func (t Toolchain) newFlex() pkg.Artifact { +func (t Toolchain) newFlex() (pkg.Artifact, string) { const ( version = "2.6.4" checksum = "p9POjQU7VhgOf3x5iFro8fjhy0NOanvA7CTeuWS_veSNgCixIJshTrWVkc5XLZkB" @@ -16,6 +16,14 @@ func (t Toolchain) newFlex() pkg.Artifact { pkg.TarGzip, ), nil, (*MakeHelper)(nil), M4, - ) + ), version +} +func init() { + artifactsM[Flex] = Metadata{ + f: Toolchain.newFlex, + + Name: "flex", + Description: "scanner generator for lexing in C and C++", + Website: "https://github.com/westes/flex/", + } } -func init() { artifactsF[Flex] = Toolchain.newFlex } -- cgit v1.3.1