diff --git a/gnu/packages/compton.scm b/gnu/packages/compton.scm index 0022992181c..6e8dd5442e8 100644 --- a/gnu/packages/compton.scm +++ b/gnu/packages/compton.scm @@ -5,6 +5,7 @@ ;;; Copyright © 2019 Brett Gilio ;;; Copyright © 2022 Jai Vetrivelan ;;; Copyright © 2023, 2024 John Kehayias +;;; Copyright © 2025 Efraim Flashner ;;; ;;; 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