From 2bf8146e311694ff8cdce9f0b1e638374682012a Mon Sep 17 00:00:00 2001 From: Efraim Flashner Date: Sun, 6 Nov 2022 12:24:00 +0200 Subject: [PATCH] gnu: keepassxc: Only build documentation on supported systems. * gnu/packages/password-utils.scm (keepassxc)[native-inputs]: Only add ruby-asciidoctor on supported platforms. [arguments]: Adjust configure-flags to skip documentation when ruby-asciidoctor isn't supported. --- gnu/packages/password-utils.scm | 16 +++++++++++++--- 1 file changed, 13 insertions(+), 3 deletions(-) diff --git a/gnu/packages/password-utils.scm b/gnu/packages/password-utils.scm index 24cceba055..c74ffe5242 100644 --- a/gnu/packages/password-utils.scm +++ b/gnu/packages/password-utils.scm @@ -157,8 +157,13 @@ (define-public keepassxc #:imported-modules `(,@%cmake-build-system-modules (guix build qt-utils)) #:configure-flags - #~(list "-DWITH_XC_ALL=YES" - "-DWITH_XC_UPDATECHECK=NO") + #~(append + (list "-DWITH_XC_ALL=YES" + "-DWITH_XC_UPDATECHECK=NO") + #$(if (member (%current-system) + (package-transitive-supported-systems ruby-asciidoctor)) + #~'() + #~(list "-DWITH_XC_DOCS=NO"))) #:phases #~(modify-phases %standard-phases (replace 'check @@ -172,7 +177,12 @@ (define-public keepassxc (lambda* (#:key inputs #:allow-other-keys) (wrap-qt-program "keepassxc" #:output #$output #:inputs inputs)))))) (native-inputs - (list qttools-5 ruby-asciidoctor)) + (append + (list qttools-5) + (if (member (%current-system) + (package-transitive-supported-systems ruby-asciidoctor)) + (list ruby-asciidoctor) + '()))) (inputs (list argon2 botan