aboutsummaryrefslogtreecommitdiffhomepage
path: root/internal/rosa/package/ninja.az
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/package/ninja.az
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/package/ninja.az')
-rw-r--r--internal/rosa/package/ninja.az34
1 files changed, 34 insertions, 0 deletions
diff --git a/internal/rosa/package/ninja.az b/internal/rosa/package/ninja.az
new file mode 100644
index 00000000..32cf8375
--- /dev/null
+++ b/internal/rosa/package/ninja.az
@@ -0,0 +1,34 @@
+package ninja {
+ description = "a small build system with a focus on speed";
+ website = "https://ninja-build.org";
+ anitya = 2089;
+
+ version* = "1.13.2";
+ source = remoteGitHub {
+ suffix = "ninja-build/ninja";
+ tag = "v"+version;
+ checksum = "ygKWMa0YV2lWKiFro5hnL-vcKbc_-RACZuPu0Io8qDvgQlZ0dxv7hPNSFkt4214v";
+ };
+ extra = [ googletest ];
+
+ exec = generic {
+ build = `
+python3 /usr/src/ninja/configure.py \
+ --verbose \
+ --bootstrap
+python3 /usr/src/ninja/configure.py \
+ --gtest-source-dir=/usr/src/extra/googletest
+./ninja ` + jobsFlagE + ` all`;
+
+ check = "\n./ninja_test";
+
+ install = `
+mkdir -p /work/system/bin/
+cp ninja /work/system/bin/`;
+ };
+
+ inputs = [
+ python,
+ bash,
+ ];
+}