diff options
| author | Efraim Flashner <efraim@flashner.co.il> | 2026-04-28 11:17:11 +0300 |
|---|---|---|
| committer | Efraim Flashner <efraim@flashner.co.il> | 2026-05-03 08:41:26 +0300 |
| commit | b6099d2751e4b203dc6a0e4c9492b9f7b945ec2c (patch) | |
| tree | 12a75a292726cfb9a7f366d3538d6b32827ccf8e /gnu/packages/assembly.scm | |
| parent | bcb2824aa44b48f2f6b09e7a661176b561da42e4 (diff) | |
gnu: Add maybe-nasm.
* gnu/packages/assembly.scm (maybe-nasm): New variable.
Change-Id: Id806e7bc63cfe19dab8d3d1486fa6e3dc48be4de
Diffstat (limited to 'gnu/packages/assembly.scm')
| -rw-r--r-- | gnu/packages/assembly.scm | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/gnu/packages/assembly.scm b/gnu/packages/assembly.scm index 29e98a3a0c4..5a289a85aba 100644 --- a/gnu/packages/assembly.scm +++ b/gnu/packages/assembly.scm | |||
| @@ -2,7 +2,7 @@ | |||
| 2 | ;;; Copyright © 2016 Jan Nieuwenhuizen <janneke@gnu.org> | 2 | ;;; Copyright © 2016 Jan Nieuwenhuizen <janneke@gnu.org> |
| 3 | ;;; Copyright © 2013, 2015 Ludovic Courtès <ludo@gnu.org> | 3 | ;;; Copyright © 2013, 2015 Ludovic Courtès <ludo@gnu.org> |
| 4 | ;;; Copyright © 2013 Andreas Enge <andreas@enge.fr> | 4 | ;;; Copyright © 2013 Andreas Enge <andreas@enge.fr> |
| 5 | ;;; Copyright © 2016, 2020, 2021, 2025 Efraim Flashner <efraim@flashner.co.il> | 5 | ;;; Copyright © 2016, 2020, 2021, 2025, 2026 Efraim Flashner <efraim@flashner.co.il> |
| 6 | ;;; Copyright © 2017–2022 Tobias Geerinckx-Rice <me@tobias.gr> | 6 | ;;; Copyright © 2017–2022 Tobias Geerinckx-Rice <me@tobias.gr> |
| 7 | ;;; Copyright © 2019 Guy Fleury Iteriteka <hoonandon@gmail.com> | 7 | ;;; Copyright © 2019 Guy Fleury Iteriteka <hoonandon@gmail.com> |
| 8 | ;;; Copyright © 2019, 2022, 2024 Andy Tai <atai@atai.org> | 8 | ;;; Copyright © 2019, 2022, 2024 Andy Tai <atai@atai.org> |
| @@ -43,6 +43,7 @@ | |||
| 43 | #:use-module ((guix licenses) #:prefix license:) | 43 | #:use-module ((guix licenses) #:prefix license:) |
| 44 | #:use-module (guix packages) | 44 | #:use-module (guix packages) |
| 45 | #:use-module (guix gexp) | 45 | #:use-module (guix gexp) |
| 46 | #:use-module (guix utils) | ||
| 46 | #:use-module (gnu packages) | 47 | #:use-module (gnu packages) |
| 47 | #:use-module (gnu packages admin) | 48 | #:use-module (gnu packages admin) |
| 48 | #:use-module (gnu packages autotools) | 49 | #:use-module (gnu packages autotools) |
| @@ -248,6 +249,16 @@ complex. It supports all currently known x86 architectural extensions, and | |||
| 248 | has strong support for macros.") | 249 | has strong support for macros.") |
| 249 | (license license:bsd-2))) | 250 | (license license:bsd-2))) |
| 250 | 251 | ||
| 252 | (define* (maybe-nasm #:optional | ||
| 253 | (system (or (%current-target-system) | ||
| 254 | (%current-system)))) | ||
| 255 | ;; For some packages nasm is only needed when compiling to/for x86/x86_64. | ||
| 256 | (if (target-x86? system) | ||
| 257 | (list nasm) | ||
| 258 | '())) | ||
| 259 | |||
| 260 | (export maybe-nasm) | ||
| 261 | |||
| 251 | (define-public yasm | 262 | (define-public yasm |
| 252 | (package | 263 | (package |
| 253 | (name "yasm") | 264 | (name "yasm") |
