summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnderson Torres <anderson.torres.8519@gmail.com>2026-05-30 21:11:49 -0300
committerNguyễn Gia Phong <cnx@loang.net>2026-08-31 11:00:18 +0900
commit572c8a94725eac59a03817fea2aa5581ceb97a32 (patch)
tree3e3d1038e06a7045a1577256e50faded48fea056
parent7166ecc3f8f3b7d73df0f7603d3d996a54f1b247 (diff)
gnu: nasm: Clean up.
* gnu/packages/assembly.scm (nasm)[source]: Indent. [native-inputs]: Put after arguments. [arguments]<#:phases>: Use gexps. [description]: Reformat using texinfo format. Merges: https://codeberg.org/guix/guix/pulls/9104 Modified-by: Nguyễn Gia Phong <cnx@loang.net> Signed-off-by: Nguyễn Gia Phong <cnx@loang.net>
-rw-r--r--gnu/packages/assembly.scm68
1 files changed, 39 insertions, 29 deletions
diff --git a/gnu/packages/assembly.scm b/gnu/packages/assembly.scm
index 33aa5209f5f..83a28707bb2 100644
--- a/gnu/packages/assembly.scm
+++ b/gnu/packages/assembly.scm
@@ -213,40 +213,50 @@ zero-page addresses.
213 (package 213 (package
214 (name "nasm") 214 (name "nasm")
215 (version "2.15.05") 215 (version "2.15.05")
216 (source (origin 216 (source
217 (method url-fetch) 217 (origin
218 (uri (string-append "http://www.nasm.us/pub/nasm/releasebuilds/" 218 (method url-fetch)
219 version "/nasm-" version ".tar.xz")) 219 (uri (string-append "http://www.nasm.us/pub/nasm/releasebuilds/"
220 (sha256 220 version "/nasm-" version ".tar.xz"))
221 (base32 221 (sha256
222 "0gqand86b0r86k3h46dh560lykxmxqqywz5m55kgjfq7q4lngbrw")))) 222 (base32 "0gqand86b0r86k3h46dh560lykxmxqqywz5m55kgjfq7q4lngbrw"))))
223 (build-system gnu-build-system) 223 (build-system gnu-build-system)
224 (native-inputs (list perl ;for doc and test target
225 texinfo))
226 (arguments 224 (arguments
227 `(#:test-target "test" 225 (list
228 #:phases 226 #:test-target "test"
229 (modify-phases %standard-phases 227 #:phases
230 (add-after 'unpack 'dont-build-ps-pdf-outputs 228 #~(modify-phases %standard-phases
231 (lambda _ 229 (add-after 'unpack 'dont-build-ps-pdf-outputs
232 (substitute* "doc/Makefile.in" 230 (lambda _
233 (("html nasmdoc.txt nasmdoc.pdf \\$\\(XZFILES\\)") 231 (substitute* "doc/Makefile.in"
234 "html nasmdoc.txt") 232 (("(html nasmdoc.txt) nasmdoc.pdf \\$\\(XZFILES\\)" all keep)
235 (("\\$\\(INSTALL_DATA\\) nasmdoc.pdf") 233 keep)
236 "$(INSTALL_DATA)")))) 234 (("(\\$\\(INSTALL_DATA\\)) nasmdoc.pdf" all keep)
237 (add-after 'install 'install-info 235 keep))))
238 (lambda _ 236 (add-after 'install 'install-info
239 (invoke "make" "install_doc")))))) 237 (lambda _
238 (invoke "make" "install_doc"))))))
239 (native-inputs (list perl ;for doc and test targets.
240 texinfo))
240 (home-page "https://www.nasm.us/") 241 (home-page "https://www.nasm.us/")
241 (synopsis "80x86 and x86-64 assembler") 242 (synopsis "80x86 and x86-64 assembler")
242 (description 243 (description
243 "NASM, the Netwide Assembler, is an 80x86 and x86-64 assembler designed 244 "@acronym{NASM,Netwide ASseMbler} is an 80x86 and x86-64 assembler
244for portability and modularity. It supports a range of object file formats, 245designed for portability and modularity. It supports a range of object file
245including Linux and *BSD a.out, ELF, COFF, Mach-O, Microsoft 16-bit OBJ, 246formats, including:
246Windows32 and Windows64. It will also output plain binary files. Its syntax 247
247is designed to be simple and easy to understand, similar to Intel's but less 248@itemize
248complex. It supports all currently known x86 architectural extensions, and 249@item Linux and *BSD a.out;
249has strong support for macros.") 250@item ELF;
251@item COFF;
252@item Mach-O;
253@item Microsoft 16-bit;
254@item plain binary files.
255@end itemize
256
257Its syntax is designed to be simple and easy to understand, similar to Intel's
258but less complex. It supports all currently known x86 architectural
259extensions, and has strong support for macros.")
250 (license license:bsd-2))) 260 (license license:bsd-2)))
251 261
252(define* (maybe-nasm #:optional 262(define* (maybe-nasm #:optional