From 72abf9b9b82d2f5f34b7d22b7aae6f2398336a93 Mon Sep 17 00:00:00 2001 From: Efraim Flashner Date: Sun, 10 Apr 2022 20:48:10 +0300 Subject: [PATCH] gnu: jq: Only build with valgrind on supported systems. * gnu/packages/web.scm (jq)[native-inputs]: Only include valgrind on systems which it supports. --- gnu/packages/web.scm | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/gnu/packages/web.scm b/gnu/packages/web.scm index 134cac1c9a..1587734ee6 100644 --- a/gnu/packages/web.scm +++ b/gnu/packages/web.scm @@ -4886,10 +4886,14 @@ It uses the uwsgi protocol for all the networking/interprocess communications.") (inputs (list oniguruma)) (native-inputs - (list ;; TODO fix gems to generate documentation - ;;("ruby" ,ruby) - ;;("bundler" ,bundler) - valgrind)) + (append + ;; TODO: fix gems to generate documentation + ;(list ruby bundler) + '() + (if (member (%current-system) + (package-supported-systems valgrind)) + (list valgrind) + '()))) (build-system gnu-build-system) (home-page "https://stedolan.github.io/jq/") (synopsis "Command-line JSON processor")