3975dd3e0f
Test / Create distribution (push) Successful in 3m19s
Test / Sandbox (push) Successful in 7m58s
Test / ShareFS (push) Successful in 10m31s
Test / Hakurei (push) Successful in 11m0s
Test / Sandbox (race detector) (push) Successful in 12m8s
Test / Hakurei (race detector) (push) Successful in 6m4s
Test / Flake checks (push) Successful in 2m47s
This centralises the workaround for surprisingly common buggy scripts with nonstandard hardcoded paths. Signed-off-by: Ophestra <cat@gensokyo.uk>
41 lines
749 B
Go
41 lines
749 B
Go
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 ];
|
|
|
|
env = [
|
|
"CFLAGS=-std=c++17",
|
|
];
|
|
|
|
bin = [ "echo" ];
|
|
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 = "./ninja_test";
|
|
|
|
install = `
|
|
mkdir -p /work/system/bin/
|
|
cp ninja /work/system/bin/`;
|
|
};
|
|
|
|
inputs = [
|
|
python,
|
|
bash,
|
|
];
|
|
}
|