mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2024-11-08 07:56:16 -05:00
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:
parent
6e26bd5b7f
commit
d4560e0b7b
1 changed files with 4 additions and 2 deletions
|
@ -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"))
|
||||
|
|
Loading…
Reference in a new issue