summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEfraim Flashner <efraim@flashner.co.il>2025-01-22 13:05:07 +0200
committerEfraim Flashner <efraim@flashner.co.il>2025-01-22 13:06:41 +0200
commit49cb321eb799ef9da82ba83a0a0e0db4b1a72f51 (patch)
treecf6a4b4ffc515bd18b7e4c003565bdccc5a45155
parente3066fe7dab3d4fcd22884ce55555ac1f16e583f (diff)
gnu: picom: Enable building without ruby-asciidoctor.
* gnu/packages/compton.scm (picom)[native-inputs]: Only add ruby-asciidoctor on supported systems. [arguments]: Only build the documentation when ruby-asciidoctor is in the native-inputs. Change-Id: Id0940df578a0620c2efe474c27bd3abd7a4d2d9c
-rw-r--r--gnu/packages/compton.scm12
1 files changed, 10 insertions, 2 deletions
diff --git a/gnu/packages/compton.scm b/gnu/packages/compton.scm
index 0022992181..6e8dd5442e 100644
--- a/gnu/packages/compton.scm
+++ b/gnu/packages/compton.scm
@@ -5,6 +5,7 @@
;;; Copyright © 2019 Brett Gilio <brettg@gnu.org>
;;; Copyright © 2022 Jai Vetrivelan <jaivetrivelan@gmail.com>
;;; Copyright © 2023, 2024 John Kehayias <john.kehayias@protonmail.com>
+;;; Copyright © 2025 Efraim Flashner <efraim@flashner.co.il>
;;;
;;; This file is part of GNU Guix.
;;;
@@ -143,10 +144,17 @@ performance).
xcb-util-image
xprop))
(native-inputs
- (list pkg-config xorgproto ruby-asciidoctor))
+ (append
+ (list pkg-config xorgproto)
+ (if (supported-package? ruby-asciidoctor)
+ (list ruby-asciidoctor)
+ '())))
(arguments
(list #:build-type "release"
- #:configure-flags #~'("-Dwith_docs=true")
+ #:configure-flags
+ (if (this-package-native-input "ruby-asciidoctor")
+ #~'("-Dwith_docs=true")
+ #~'("-Dwith_docs=false"))
#:phases
#~(modify-phases %standard-phases
;; This file would be patched by 'patch-dot-desktop-files but