aboutsummaryrefslogtreecommitdiffhomepage
path: root/internal
diff options
context:
space:
mode:
authorOphestra <cat@gensokyo.uk>2026-02-16 23:55:36 +0900
committerOphestra <cat@gensokyo.uk>2026-02-16 23:55:36 +0900
commit7f05baab286b2ff5ac56595d8caae129e46a2079 (patch)
treefa85c407c230733758e4a61b2550e3162fc7bb10 /internal
parentd4d5e631aea2b0d96ac8d9776299095677e91290 (diff)
internal/rosa: flex artifact
Required by dtc, which is required by qemu. Signed-off-by: Ophestra <cat@gensokyo.uk>
Diffstat (limited to 'internal')
-rw-r--r--internal/rosa/all.go2
-rw-r--r--internal/rosa/flex.go21
2 files changed, 23 insertions, 0 deletions
diff --git a/internal/rosa/all.go b/internal/rosa/all.go
index 1a80a0a1..edbc058f 100644
--- a/internal/rosa/all.go
+++ b/internal/rosa/all.go
@@ -22,6 +22,7 @@ const (
Curl
Diffutils
Findutils
+ Flex
Fuse
GMP
GLib
@@ -129,6 +130,7 @@ func ResolveName(name string) (p PArtifact, ok bool) {
"curl": Curl,
"diffutils": Diffutils,
"findutils": Findutils,
+ "flex": Flex,
"fuse": Fuse,
"gmp": GMP,
"glib": GLib,
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 }