mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2024-11-07 07:26:13 -05:00
gnu: cryptsetup: Only use ruby-asciidoctor on supported systems.
* gnu/packages/cryptsetup.scm (cryptsetup)[native-inputs]: Only use ruby-asciidoctor on supported systems. [arguments]: When building without ruby-asciidoctor adjust the configure-flags. Change-Id: If4551833de3c5b5a28424c059644e9fa7fda5abd
This commit is contained in:
parent
0933b6b86b
commit
f48ecef7bd
1 changed files with 24 additions and 16 deletions
|
@ -2,6 +2,7 @@
|
|||
;;; Copyright © 2013 Andreas Enge <andreas@enge.fr>
|
||||
;;; Copyright © 2016 Ludovic Courtès <ludo@gnu.org>
|
||||
;;; Copyright © 2019–2021 Tobias Geerinckx-Rice <me@tobias.gr>
|
||||
;;; Copyright © 2024 Efraim Flashner <efraim@flashner.co.il>
|
||||
;;;
|
||||
;;; This file is part of GNU Guix.
|
||||
;;;
|
||||
|
@ -49,6 +50,10 @@ (define-public cryptsetup
|
|||
(build-system gnu-build-system)
|
||||
(arguments
|
||||
`(#:configure-flags
|
||||
(append
|
||||
(if (assoc-ref %build-inputs "ruby-asciidoctor")
|
||||
'()
|
||||
(list "--disable-asciidoc"))
|
||||
(list
|
||||
;; Argon2 is always enabled, this just selects the (faster) full version.
|
||||
"--enable-libargon2"
|
||||
|
@ -63,9 +68,12 @@ (define-public cryptsetup
|
|||
;; libgcrypt is not found otherwise when cross-compiling.
|
||||
;; <https://issues.guix.gnu.org/63864>
|
||||
(string-append "--with-libgcrypt-prefix="
|
||||
(assoc-ref %build-inputs "libgcrypt")))))
|
||||
(assoc-ref %build-inputs "libgcrypt"))))))
|
||||
(native-inputs
|
||||
(list pkg-config ruby-asciidoctor))
|
||||
(append (list pkg-config)
|
||||
(if (supported-package? ruby-asciidoctor)
|
||||
(list ruby-asciidoctor)
|
||||
'())))
|
||||
(inputs
|
||||
(list argon2
|
||||
json-c
|
||||
|
|
Loading…
Reference in a new issue