gnu: newsboat: Honor the #:tests? flag.

* gnu/packages/syndication.scm (newsboat)[arguments]: Adjust the custom
'check phase to honor the #:tests? flag.

Change-Id: I626787ac2d33dfd1e003a0a8e8758e563c664f90
This commit is contained in:
Efraim Flashner 2023-11-19 10:52:29 +02:00
parent 4442aa8780
commit 8b8637079c
No known key found for this signature in database
GPG key ID: 41AAE7DCCA3D8351

View file

@ -309,9 +309,10 @@ (define-public newsboat
(replace 'build
(assoc-ref gnu:%standard-phases 'build))
(replace 'check
(lambda args
((assoc-ref gnu:%standard-phases 'check)
#:test-target "test")))
(lambda* (#:key tests? #:allow-other-keys #:rest args)
(when tests?
((assoc-ref gnu:%standard-phases 'check)
#:test-target "test"))))
(replace 'install
(assoc-ref gnu:%standard-phases 'install)))))
(native-search-paths