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>
This commit is contained in:
2026-05-21 16:48:10 +09:00
parent 6546ddc64b
commit 9d7a27d8ac
4 changed files with 52 additions and 53 deletions

View File

@@ -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,
];
}