aboutsummaryrefslogtreecommitdiffhomepage
path: root/internal/rosa/ninja.go
diff options
context:
space:
mode:
authorOphestra <cat@gensokyo.uk>2026-05-21 16:48:10 +0900
committerOphestra <cat@gensokyo.uk>2026-05-21 16:48:10 +0900
commit9d7a27d8acd499c3d7c8d5b98539734c11ff5434 (patch)
treea79bea1872d5bfcb26a608f6c1dbbf156dc064ac /internal/rosa/ninja.go
parent6546ddc64bcbf73c7419bac7af596b924005dbc3 (diff)
internal/rosa/package: migrate ninja
The ninja package predates all abstractions currently available. This migration causes rebuilds due to the old package being nonreproducible. Signed-off-by: Ophestra <cat@gensokyo.uk>
Diffstat (limited to 'internal/rosa/ninja.go')
-rw-r--r--internal/rosa/ninja.go52
1 files changed, 0 insertions, 52 deletions
diff --git a/internal/rosa/ninja.go b/internal/rosa/ninja.go
deleted file mode 100644
index 74f82998..00000000
--- a/internal/rosa/ninja.go
+++ /dev/null
@@ -1,52 +0,0 @@
-package rosa
-
-import "hakurei.app/internal/pkg"
-
-var _ninja = H("ninja")
-
-func init() {
- const (
- version = "1.13.2"
- checksum = "ygKWMa0YV2lWKiFro5hnL-vcKbc_-RACZuPu0Io8qDvgQlZ0dxv7hPNSFkt4214v"
- )
- meta := Metadata{
- Name: "ninja",
- Description: "a small build system with a focus on speed",
- Website: "https://ninja-build.org",
- Version: version,
-
- ID: 2089,
- }
- native.MustRegister(meta.Name, func(t Toolchain) (*Metadata, pkg.Artifact) {
- _, python := t.Load(_python)
- _, bash := t.Load(_bash)
- return &meta, t.New(meta.Name+"-"+version, 0, []pkg.Artifact{
- python,
- bash,
- }, nil, nil, `
-cd "$(mktemp -d)"
-python3 /usr/src/ninja/configure.py \
- --verbose \
- --bootstrap \
- --gtest-source-dir=/usr/src/googletest
-./ninja `+jobsFlagE+` all
-./ninja_test
-
-mkdir -p /work/system/bin/
-cp ninja /work/system/bin/
-`, pkg.Path(AbsUsrSrc.Append("googletest"), false,
- newFromGitHubRelease(
- "google/googletest",
- "v1.16.0",
- "googletest-1.16.0.tar.gz",
- "NjLGvSbgPy_B-y-o1hdanlzEzaYeStFcvFGxpYV3KYlhrWWFRcugYhM3ZMzOA9B_",
- pkg.TarGzip,
- )), pkg.Path(AbsUsrSrc.Append("ninja"), true, t.NewPatchedSource(
- meta.Name+"-"+version, newFromGitHub(
- "ninja-build/ninja",
- "v"+version,
- checksum,
- ), false,
- )))
- })
-}