All checks were successful
Test / Create distribution (push) Successful in 1m0s
Test / Sandbox (push) Successful in 2m52s
Test / Hakurei (push) Successful in 5m6s
Test / ShareFS (push) Successful in 5m15s
Test / Hpkg (push) Successful in 5m55s
Test / Sandbox (race detector) (push) Successful in 6m15s
Test / Hakurei (race detector) (push) Successful in 7m16s
Test / Flake checks (push) Successful in 2m35s
This is a variant of toybox with unfinished tools enabled, for artifacts that will end up in a dependency loop without them. Signed-off-by: Ophestra <cat@gensokyo.uk>
32 lines
782 B
Go
32 lines
782 B
Go
package rosa
|
|
|
|
import "hakurei.app/internal/pkg"
|
|
|
|
func (t Toolchain) newMksh() pkg.Artifact {
|
|
const (
|
|
version = "59c"
|
|
checksum = "0Zj-k4nXEu3IuJY4lvwD2OrC2t27GdZj8SPy4DoaeuBRH1padWb7oREpYgwY8JNq"
|
|
)
|
|
return t.New("mksh-"+version, 0, stage3Concat(t, []pkg.Artifact{},
|
|
t.Load(Make),
|
|
t.Load(Perl),
|
|
t.Load(Coreutils),
|
|
), nil, []string{
|
|
"LDSTATIC=-static",
|
|
}, `
|
|
cd "$(mktemp -d)"
|
|
sh /usr/src/mksh/Build.sh
|
|
./test.sh -C regress:no-ctty
|
|
|
|
mkdir -p /work/{bin,system/bin}
|
|
cp mksh /work/system/bin/sh
|
|
ln -vs ../system/bin/sh /work/bin
|
|
`, pkg.Path(AbsUsrSrc.Append("mksh"), false, pkg.NewHTTPGetTar(
|
|
nil,
|
|
"https://mbsd.evolvis.org/MirOS/dist/mir/mksh/mksh-R"+version+".tgz",
|
|
mustDecode(checksum),
|
|
pkg.TarGzip,
|
|
)))
|
|
}
|
|
func init() { artifactsF[Mksh] = Toolchain.newMksh }
|