forked from rosa/hakurei
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>
This commit is contained in:
@@ -2,12 +2,12 @@ package rosa
|
||||
|
||||
import "hakurei.app/internal/pkg"
|
||||
|
||||
func (t Toolchain) newStrace() (pkg.Artifact, string) {
|
||||
func (t Toolchain) newStrace(s *S) (pkg.Artifact, string) {
|
||||
const (
|
||||
version = "6.19"
|
||||
checksum = "XJFJJ9XLh_1rHS3m_QNjLKzkkBAooE-QT9p9lJNNWowAmd54IJop_fI4-IFtjeeL"
|
||||
)
|
||||
return t.NewPackage("strace", version, pkg.NewHTTPGet(
|
||||
return s.NewPackage(t, "strace", version, pkg.NewHTTPGet(
|
||||
nil, "https://strace.io/files/"+version+"/strace-"+version+".tar.xz",
|
||||
mustDecode(checksum),
|
||||
), &PackageAttr{
|
||||
@@ -37,7 +37,7 @@ sed -i 's/unsigned int msg_len;$/uint32_t msg_len;/g' \
|
||||
), version
|
||||
}
|
||||
func init() {
|
||||
artifactsM[Strace] = Metadata{
|
||||
native.MustRegister(&Artifact{
|
||||
f: Toolchain.newStrace,
|
||||
|
||||
Name: "strace",
|
||||
@@ -45,5 +45,5 @@ func init() {
|
||||
Website: "https://strace.io/",
|
||||
|
||||
ID: 4897,
|
||||
}
|
||||
})
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user