mirror of
https://git.savannah.gnu.org/git/guix.git
synced 2025-01-18 21:46:35 +01:00
gnu: cpulimit: Use make-flags.
* gnu/packages/admin.scm (cpulimit)[arguments]: Introduce make-flags. Use them in custom 'build and 'check phases.
This commit is contained in:
parent
bc63198830
commit
6e26bd5b7f
1 changed files with 6 additions and 5 deletions
|
@ -2383,17 +2383,18 @@ (define-public cpulimit
|
|||
`(#:phases (modify-phases %standard-phases
|
||||
(delete 'configure)
|
||||
(replace 'build
|
||||
(lambda _
|
||||
(invoke "make" (string-append "CC=" ,(cc-for-target)) "-Csrc")))
|
||||
(lambda* (#:key make-flags #:allow-other-keys)
|
||||
(apply invoke "make" "-Csrc" make-flags)))
|
||||
(replace 'check
|
||||
(lambda _
|
||||
(invoke "make" (string-append "CC=" ,(cc-for-target)) "-Ctests")))
|
||||
(lambda* (#:key make-flags #:allow-other-keys)
|
||||
(apply invoke "make" "-Ctests" make-flags)))
|
||||
(replace 'install
|
||||
(lambda* (#:key outputs #:allow-other-keys)
|
||||
(let* ((out (assoc-ref outputs "out"))
|
||||
(bin (string-append out "/bin")))
|
||||
(install-file "src/cpulimit" bin))
|
||||
#t)))))
|
||||
#t)))
|
||||
#:make-flags (list (string-append "CC=" ,(cc-for-target)))))
|
||||
(home-page "https://github.com/opsengine/cpulimit")
|
||||
(synopsis "Limit CPU usage")
|
||||
(description
|
||||
|
|
Loading…
Reference in a new issue