diff options
| author | Ophestra <cat@gensokyo.uk> | 2026-05-17 13:07:12 +0900 |
|---|---|---|
| committer | Ophestra <cat@gensokyo.uk> | 2026-05-17 15:56:53 +0900 |
| commit | 30eb0d6a613ad268f6805ccbcdcabf158e7f526f (patch) | |
| tree | 07e55baa52748fd139e183017eeb43f5f64cee59 /internal/rosa/mksh.go | |
| parent | c2ff9c9fa55ea569a5e70ee90d2eb0b2ee2a0540 (diff) | |
internal/rosa: key metadata by string
For upcoming azalea integration. The API is quite ugly right now to ease migration.
Signed-off-by: Ophestra <cat@gensokyo.uk>
Diffstat (limited to 'internal/rosa/mksh.go')
| -rw-r--r-- | internal/rosa/mksh.go | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/internal/rosa/mksh.go b/internal/rosa/mksh.go index fedc3f84..a2059efa 100644 --- a/internal/rosa/mksh.go +++ b/internal/rosa/mksh.go @@ -2,16 +2,16 @@ package rosa import "hakurei.app/internal/pkg" -func (t Toolchain) newMksh() (pkg.Artifact, string) { +func (t Toolchain) newMksh(s *S) (pkg.Artifact, string) { const ( version = "59c" checksum = "0Zj-k4nXEu3IuJY4lvwD2OrC2t27GdZj8SPy4DoaeuBRH1padWb7oREpYgwY8JNq" ) scriptTest := "./test.sh -C regress:no-ctty\n" - if presetOpts&OptSkipCheck != 0 { + if s.opts&OptSkipCheck != 0 { scriptTest = "" } - return t.New("mksh-"+version, 0, t.AppendPresets(nil, + return s.New(t, "mksh-"+version, 0, s.AppendPresets(t, nil, Perl, Coreutils, ), nil, []string{ @@ -36,7 +36,7 @@ ln -vs ../system/bin/sh /work/bin/ ))), version } func init() { - artifactsM[Mksh] = Metadata{ + native.MustRegister(&Artifact{ f: Toolchain.newMksh, Name: "mksh", @@ -44,5 +44,5 @@ func init() { Website: "https://www.mirbsd.org/mksh", ID: 5590, - } + }) } |
