apotocki/nasm 3.02 (r1, windows)
- Library
- nasm
- Variant
- windows, target windows
- Channel
- stable
- Published
- 2026-11-07
- Recipe source
- https://github.com/otok-dev/recipes.git
32756a87cf5bd189ca4c9825159bf0713ea8cf5einrecipes/nasm/3.02/windows/ - Recipe SHA-256
8b802652e5dc1794a314e98a02da131a1c46a8c1991664163cfdc5cec8f510cd
Recipe files changed
Inputs
| source.sha256 | 87336eba53b4acfe917424ab5d500d2b0054d9f5148d35c2273ccf2cfb712f0d |
|---|---|
| source.url | https://www.nasm.us/pub/nasm/releasebuilds/3.02/nasm-3.02.tar.xz |
Platforms
windows
Recipe files
build.lua
-- nmake with nasm's Mkfiles/msvc.mak, cl of Visual Studio's environment; the generated sources are in the archive, and
-- without perl the makefile leaves them as they are. nmake takes no MAKEFLAGS of make (the jobserver's).
function build(slice, options, deps)
-- nasmlib/file.c includes <stringapiset.h> without <windows.h>, whose winnt.h then knows no architecture: CL, which cl
-- adds to its command lines, names it
local machine = slice.arch == "arm64" and "_ARM64_" or "_AMD64_"
otok.run({ "nmake", "/nologo", "/f", "Mkfiles/msvc.mak", "nasm.exe" },
{ cwd = slice.source, env = { MAKEFLAGS = false, MFLAGS = false, CL = "/D" .. machine } })
local program = slice.prefix .. "/bin/nasm.exe"
otok.copy(slice.source .. "/nasm.exe", program)
return { programs = { nasm = program } }
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 Windows: built from the release archive
# by nmake with its Mkfiles/msvc.mak in Visual Studio's environment.
[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 = ["windows"]
build-on = ["windows/msvc"]