gnu: cpulimit: Make check phase conditional.

* gnu/packages/admin.scm (cpulimit)[arguments]: Only run custom 'check
phase when tests are enabled.
This commit is contained in:
Efraim Flashner 2020-11-16 11:15:49 +02:00
parent 6e26bd5b7f
commit d4560e0b7b
No known key found for this signature in database
GPG key ID: 41AAE7DCCA3D8351

View file

@ -2386,8 +2386,10 @@ (define-public cpulimit
(lambda* (#:key make-flags #:allow-other-keys)
(apply invoke "make" "-Csrc" make-flags)))
(replace 'check
(lambda* (#:key make-flags #:allow-other-keys)
(apply invoke "make" "-Ctests" make-flags)))
(lambda* (#:key tests? make-flags #:allow-other-keys)
(when tests?
(apply invoke "make" "-Ctests" make-flags))
#t))
(replace 'install
(lambda* (#:key outputs #:allow-other-keys)
(let* ((out (assoc-ref outputs "out"))