me
/
guix
Archived
1
0
Fork 0

gnu: cpulimit: Make check phase conditional.

* gnu/packages/admin.scm (cpulimit)[arguments]: Only run custom 'check
phase when tests are enabled.
master
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
1 changed files with 4 additions and 2 deletions

View File

@ -2386,8 +2386,10 @@ lookup to YAML Mode. You could enable the mode with @code{(add-hook
(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"))