efraim pushed a commit to branch master
in repository guix.

commit da6486010ab1ac5f6c67764bb599385026b7fe15
Author: Efraim Flashner <[email protected]>
AuthorDate: Wed Nov 8 21:26:51 2023 +0200

    gnu: ccache: Enable building on more architectures.
    
    * gnu/packages/ccache.scm (ccache)[native-inputs]: Only build with
    ruby-asciidoctor on platforms which have support for it.
    
    Change-Id: Ibb944fb6f844e3ededadd5277e20dd9ac21eb3eb
---
 gnu/packages/ccache.scm | 8 ++++++--
 1 file changed, 6 insertions(+), 2 deletions(-)

diff --git a/gnu/packages/ccache.scm b/gnu/packages/ccache.scm
index 26a71f40ef..a1af25df2b 100644
--- a/gnu/packages/ccache.scm
+++ b/gnu/packages/ccache.scm
@@ -1,6 +1,6 @@
 ;;; GNU Guix --- Functional package management for GNU
 ;;; Copyright © 2014, 2015, 2016, 2018 Eric Bavier <[email protected]>
-;;; Copyright © 2016, 2017 Efraim Flashner <[email protected]>
+;;; Copyright © 2016, 2017, 2023 Efraim Flashner <[email protected]>
 ;;; Copyright © 2018–2021 Tobias Geerinckx-Rice <[email protected]>
 ;;; Copyright © 2021, 2022 Greg Hogan <[email protected]>
 ;;; Copyright © 2022 Maxim Cournoyer <[email protected]>
@@ -62,7 +62,11 @@
                  ;; Tests require a writable HOME.
                  (lambda _
                    (setenv "HOME" (getenv "TMPDIR")))))))
-    (native-inputs (list perl ruby-asciidoctor which))
+    (native-inputs
+     (append (list perl which)
+             (if (supported-package? ruby-asciidoctor)
+               (list ruby-asciidoctor)
+               '())))
     (inputs (list zlib `(,zstd "lib")))
     (home-page "https://ccache.dev/";)
     (synopsis "Compiler cache")

Reply via email to