internal/rosa: migrate buildcatrust

Other nss-related packages are unlikely to be migrated any time soon.

Signed-off-by: Ophestra <cat@gensokyo.uk>
This commit is contained in:
2026-05-19 01:43:53 +09:00
parent 4d60fa5632
commit 6e9e8c74f3
5 changed files with 73 additions and 34 deletions

View File

@@ -524,6 +524,22 @@ func (s *S) getFrame() azalea.Frame {
return
}},
k("remoteGitHub"): {F: func(
args azalea.FArgs,
) (v any, set bool, err error) {
var suffix, tag, checksum string
if err = args.Apply(map[unique.Handle[azalea.Ident]]any{
k("suffix"): &suffix,
k("tag"): &tag,
k("checksum"): &checksum,
}); err != nil {
return
}
v = newFromGitHub(suffix, tag, checksum)
set = true
return
}},
// high-level helpers
k("make"): {F: func(
@@ -555,6 +571,26 @@ func (s *S) getFrame() azalea.Frame {
set = true
return
}},
k("pip"): {F: func(
args azalea.FArgs,
) (v any, set bool, err error) {
var attr PipHelper
if err = args.Apply(map[unique.Handle[azalea.Ident]]any{
k("append"): &attr.Append,
k("buildIsolation"): &attr.BuildIsolation,
k("enterSource"): &attr.EnterSource,
k("install"): &attr.Install,
k("skipCheck"): &attr.SkipCheck,
k("check"): &attr.Check,
k("postInstall"): &attr.Script,
}); err != nil {
return
}
v = &attr
set = true
return
}},
}
})
return s.frame