apotocki/nasm
NASM, the Netwide Assembler, built from source.
- Library
- nasm
- Newest
- 3.02 (r1, apple)
- Targets
- apple, linux, windows
- License
- BSD-2-Clause
- Homepage
- https://www.nasm.us
- Keywords
- assembler, tool
Use it
In otok.toml:
[deps.nasm]
recipe = "apotocki/nasm"
version = "~> 3.02"
Versions
| Version | Target | Channel | Published | Status |
|---|---|---|---|---|
| 3.02 (r1, apple) | apple | stable | 2026-11-07 | |
| 3.02 (r1, linux) | linux | stable | 2026-11-07 | |
| 3.02 (r1, windows) | windows | stable | 2026-11-07 |
3.02 (r1, apple)
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" }