apotocki/nasm 3.02 (r1, apple)
- Library
- nasm
- Variant
- apple, target apple
- Channel
- stable
- Published
- 2026-11-07
- Recipe source
- https://github.com/otok-dev/recipes
32756a87cf5bd189ca4c9825159bf0713ea8cf5einrecipes/nasm/3.02/apple/ - Recipe SHA-256
597d4c69bfe00bc7781053d85d8c9a2c6c686edd09f5659bb0e5652fd7413d9b
Recipe files changed
Inputs
| source.sha256 | 87336eba53b4acfe917424ab5d500d2b0054d9f5148d35c2273ccf2cfb712f0d |
|---|---|
| source.url | https://www.nasm.us/pub/nasm/releasebuilds/3.02/nasm-3.02.tar.xz |
Platforms
macosx
Toolchains
make { default-recipe = "apotocki/make", version = ">= 3.81" }
Recipe files
build.lua
-- nasm built by its configure and make; the generated sources are in the archive, so no perl is needed.
function build(slice, options, deps)
local p = slice.prefix
local env = { CC = slice.toolchain.cc, CFLAGS = table.concat(slice.toolchain.cflags, " ") }
otok.run({ "sh", slice.source .. "/configure", "--prefix=" .. p }, { cwd = slice.build, env = env })
otok.run({ slice.toolchains.make, "-j" .. slice.jobs, "nasm" }, { cwd = slice.build })
otok.copy(slice.build .. "/nasm", p .. "/bin/nasm")
return { programs = { nasm = p .. "/bin/nasm" } }
end
recipe.toml
# The otok recipe of NASM (https://github.com/apotocki/otok): the nasm assembler for the builds of other recipes, which
# name it as their toolchain (`nasm = { default-recipe = "apotocki/nasm" }`), on macOS: built from the release archive
# with its configure and make.
[recipe]
api = 1
library = "nasm"
name = "nasm"
version = "3.02"
revision = 1
license = "BSD-2-Clause"
license-files = ["LICENSE"]
homepage = "https://www.nasm.us"
description = "NASM, the Netwide Assembler, built from source."
keywords = ["assembler", "tool"]
[tool]
programs = ["nasm"]
[source]
url = "https://www.nasm.us/pub/nasm/releasebuilds/3.02/nasm-3.02.tar.xz"
sha256 = "87336eba53b4acfe917424ab5d500d2b0054d9f5148d35c2273ccf2cfb712f0d"
[platforms]
supported = ["macosx"]
build-on = ["macos/xcode"]
[toolchains]
make = { version = ">= 3.81", default-recipe = "apotocki/make" }