mirror of
https://git.savannah.gnu.org/git/guix.git
synced 2025-01-30 14:26:48 +01:00
gnu: kmod: Update phase style.
* gnu/packages/linux.scm (kmod)[arguments]: Use MODIFY-PHASES syntax and end phase in #t.
This commit is contained in:
parent
eb67a470c7
commit
9f2eb4ffad
1 changed files with 13 additions and 12 deletions
|
@ -1950,19 +1950,20 @@ (define-public kmod
|
|||
`(("xz" ,xz)
|
||||
("zlib" ,zlib)))
|
||||
(arguments
|
||||
`(#:tests? #f ; FIXME: Investigate test failures
|
||||
`(#:tests? #f ; FIXME: Investigate test failures
|
||||
#:configure-flags '("--with-xz" "--with-zlib")
|
||||
#:phases (alist-cons-after
|
||||
'install 'install-modprobe&co
|
||||
(lambda* (#:key outputs #:allow-other-keys)
|
||||
(let* ((out (assoc-ref outputs "out"))
|
||||
(bin (string-append out "/bin")))
|
||||
(for-each (lambda (tool)
|
||||
(symlink "kmod"
|
||||
(string-append bin "/" tool)))
|
||||
'("insmod" "rmmod" "lsmod" "modprobe"
|
||||
"modinfo" "depmod"))))
|
||||
%standard-phases)))
|
||||
#:phases
|
||||
(modify-phases %standard-phases
|
||||
(add-after 'install 'install-modprobe&co
|
||||
(lambda* (#:key outputs #:allow-other-keys)
|
||||
(let* ((out (assoc-ref outputs "out"))
|
||||
(bin (string-append out "/bin")))
|
||||
(for-each (lambda (tool)
|
||||
(symlink "kmod"
|
||||
(string-append bin "/" tool)))
|
||||
'("insmod" "rmmod" "lsmod" "modprobe"
|
||||
"modinfo" "depmod"))
|
||||
#t))))))
|
||||
(home-page "https://www.kernel.org/")
|
||||
(synopsis "Kernel module tools")
|
||||
(description "Kmod is a set of tools to handle common tasks with Linux
|
||||
|
|
Loading…
Reference in a new issue