diff options
| author | Ophestra <cat@gensokyo.uk> | 2026-03-04 18:01:18 +0900 |
|---|---|---|
| committer | Ophestra <cat@gensokyo.uk> | 2026-03-05 00:20:27 +0900 |
| commit | d2c6d486b06073aa88ee1912d3587f657cd57304 (patch) | |
| tree | 42e7df590ee8cda255e4cd35f9bd5ff7f9b2f94f /internal/rosa/flex.go | |
| parent | 6fdd800b2b421b32e7db373b576433126c4652a2 (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/flex.go')
| -rw-r--r-- | internal/rosa/flex.go | 14 |
1 files changed, 11 insertions, 3 deletions
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 } |
