Otok public index

apotocki/ninja

apotocki/ninja 1.13.2 (r1, linux)

Library
ninja
Variant
linux, target linux
Channel
stable
Published
2026-11-07
Recipe source
https://github.com/otok-dev/recipes
32756a87cf5bd189ca4c9825159bf0713ea8cf5e in recipes/ninja/1.13/linux/
Recipe SHA-256
e504db14fa8cf72e686c4c0a439eb7b0e035cecb5ff52e6e4108ae20d9e1d37b

Recipe files changed

Inputs

source.commit3441b633c2fe2c494e958780ba0f4227b1327634
source.githttps://github.com/ninja-build/ninja
source.tagv1.13.2

Platforms

linux

Toolchains

Recipe files

build.lua 432 bytes · raw
-- configure.py --bootstrap compiles ninja with the slice's C++ compiler and leaves it in the working directory.
function build(slice, options, deps)
    otok.run({ slice.toolchains.python, "configure.py", "--bootstrap" }, { cwd = slice.source, env = { CXX = slice.toolchain.cxx } })
    local program = slice.prefix .. "/bin/ninja"
    otok.copy(slice.source .. "/ninja", program)
    return { programs = { ninja = program } }
end
recipe.toml 881 bytes · raw
# The otok recipe of Ninja (https://github.com/apotocki/otok): the ninja program for the builds of other recipes, which
# name it as their toolchain (`ninja = { default-recipe = "apotocki/ninja" }`). Bootstrapped by its configure.py with the
# machine's compiler, so it needs no ninja or CMake of its own.
[recipe]
api = 1
library = "ninja"
name = "ninja"
version = "1.13.2"
revision = 1
license = "Apache-2.0"
license-files = ["COPYING"]
homepage = "https://ninja-build.org"
description = "Ninja, a small build system with a focus on speed."
keywords = ["build", "tool"]

[tool]
programs = ["ninja"]

[source]
git = "https://github.com/ninja-build/ninja"
commit = "3441b633c2fe2c494e958780ba0f4227b1327634"
tag = "v1.13.2"

[platforms]
supported = ["linux"]
build-on = ["linux/gcc", "linux/clang"]

[toolchains]
python = { version = ">= 3.6", default-recipe = "apotocki/python" }