diff options
| author | Ophestra <cat@gensokyo.uk> | 2026-02-16 23:55:36 +0900 |
|---|---|---|
| committer | Ophestra <cat@gensokyo.uk> | 2026-02-16 23:55:36 +0900 |
| commit | 7f05baab286b2ff5ac56595d8caae129e46a2079 (patch) | |
| tree | fa85c407c230733758e4a61b2550e3162fc7bb10 /internal/rosa/flex.go | |
| parent | d4d5e631aea2b0d96ac8d9776299095677e91290 (diff) | |
internal/rosa: flex artifact
Required by dtc, which is required by qemu.
Signed-off-by: Ophestra <cat@gensokyo.uk>
Diffstat (limited to 'internal/rosa/flex.go')
| -rw-r--r-- | internal/rosa/flex.go | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/internal/rosa/flex.go b/internal/rosa/flex.go new file mode 100644 index 00000000..46d59fc2 --- /dev/null +++ b/internal/rosa/flex.go @@ -0,0 +1,21 @@ +package rosa + +import ( + "hakurei.app/internal/pkg" +) + +func (t Toolchain) newFlex() pkg.Artifact { + const ( + version = "2.6.4" + checksum = "p9POjQU7VhgOf3x5iFro8fjhy0NOanvA7CTeuWS_veSNgCixIJshTrWVkc5XLZkB" + ) + return t.NewViaMake("flex", version, pkg.NewHTTPGetTar( + nil, "https://github.com/westes/flex/releases/download/"+ + "v"+version+"/flex-"+version+".tar.gz", + mustDecode(checksum), + pkg.TarGzip, + ), nil, + t.Load(M4), + ) +} +func init() { artifactsF[Flex] = Toolchain.newFlex } |
