aboutsummaryrefslogtreecommitdiff
path: root/gnu/packages
diff options
context:
space:
mode:
authorEfraim Flashner <efraim@flashner.co.il>2024-06-17 08:54:09 +0300
committerEfraim Flashner <efraim@flashner.co.il>2024-06-17 08:54:09 +0300
commit78d385a6b483e73bfdf860319c727caefa2cd0d9 (patch)
tree4218d809558bcf5cf00ad26127e91fd126b2b723 /gnu/packages
parent7a70532dd8a6d5b58f6a57220aa51e3cdc20ec88 (diff)
downloadguix-78d385a6b483e73bfdf860319c727caefa2cd0d9.tar.gz
guix-78d385a6b483e73bfdf860319c727caefa2cd0d9.zip
gnu: trealla: Only build with valgrind when supported.
* gnu/packages/prolog.scm (trealla)[native-inputs]: Remove git. Only add valgrind when on supported platforms. [arguments]: When building without valgrind adjust the test-target to run the test suite which doesn't expect valgrind present. Change-Id: Ib2a1a4fd5eace98d4c9eba7e55663fe0ab9daa73
Diffstat (limited to 'gnu/packages')
-rw-r--r--gnu/packages/prolog.scm11
1 files changed, 9 insertions, 2 deletions
diff --git a/gnu/packages/prolog.scm b/gnu/packages/prolog.scm
index 99e7e26193..4044c2d529 100644
--- a/gnu/packages/prolog.scm
+++ b/gnu/packages/prolog.scm
@@ -2,7 +2,7 @@
;;; Copyright © 2013 Nikita Karetnikov <nikita@karetnikov.org>
;;; Copyright © 2013 Mark H Weaver <mhw@netris.org>
;;; Copyright © 2020 Brett Gilio <brettg@gnu.org>
-;;; Copyright © 2021 Efraim Flashner <efraim@flashner.co.il>
+;;; Copyright © 2021, 2024 Efraim Flashner <efraim@flashner.co.il>
;;; Copyright © 2021 Maxime Devos <maximedevos@telenet.be>
;;; Copyright © 2024 jgart <jgart@dismail.de>
;;;
@@ -193,12 +193,19 @@ it.")
(file-name (git-file-name name version))))
(build-system gnu-build-system)
(native-inputs
- (list git valgrind xxd))
+ (append
+ (if (supported-package? valgrind)
+ (list valgrind)
+ '())
+ (list xxd)))
(inputs
(list libffi openssl readline))
(arguments
(list
#:make-flags #~(list (string-append "CC=" #$(cc-for-target)))
+ #:test-target (if (this-package-native-input "valgrind")
+ "check"
+ "test")
#:phases
#~(modify-phases %standard-phases
;; Upstream does not use a configure script.