forked from rosa/hakurei
internal/rosa/package: migrate nss
Signed-off-by: Ophestra <cat@gensokyo.uk>
This commit is contained in:
@@ -2,8 +2,7 @@ package rosa
|
||||
|
||||
import "hakurei.app/internal/pkg"
|
||||
|
||||
// Ninja is the build system used by [CMakeHelper] and [MesonHelper].
|
||||
var Ninja = H("ninja")
|
||||
var _ninja = H("ninja")
|
||||
|
||||
func init() {
|
||||
const (
|
||||
@@ -19,11 +18,11 @@ func init() {
|
||||
ID: 2089,
|
||||
}
|
||||
native.MustRegister(meta.Name, func(t Toolchain) (*Metadata, pkg.Artifact) {
|
||||
_, _python := t.Load(Python)
|
||||
_, _bash := t.Load(bash)
|
||||
_, python := t.Load(_python)
|
||||
_, bash := t.Load(_bash)
|
||||
return &meta, t.New(meta.Name+"-"+version, 0, []pkg.Artifact{
|
||||
_python,
|
||||
_bash,
|
||||
python,
|
||||
bash,
|
||||
}, nil, nil, `
|
||||
cd "$(mktemp -d)"
|
||||
python3 /usr/src/ninja/configure.py \
|
||||
@@ -43,7 +42,7 @@ cp ninja /work/system/bin/
|
||||
"NjLGvSbgPy_B-y-o1hdanlzEzaYeStFcvFGxpYV3KYlhrWWFRcugYhM3ZMzOA9B_",
|
||||
pkg.TarGzip,
|
||||
)), pkg.Path(AbsUsrSrc.Append("ninja"), true, t.NewPatchedSource(
|
||||
meta.Name, version, newFromGitHub(
|
||||
meta.Name+"-"+version, newFromGitHub(
|
||||
"ninja-build/ninja",
|
||||
"v"+version,
|
||||
checksum,
|
||||
|
||||
Reference in New Issue
Block a user