gnu: kmod: Install symlinks for 'insmod', 'modprobe', etc.
* gnu/packages/linux.scm (kmod)[arguments]: Add 'install-modprobe&co' phase.
This commit is contained in:
parent
906f70406a
commit
4a8b4c25b0
|
@ -1273,7 +1273,18 @@ to use Linux' inotify mechanism, which allows file accesses to be monitored.")
|
||||||
("zlib" ,guix:zlib)))
|
("zlib" ,guix:zlib)))
|
||||||
(arguments
|
(arguments
|
||||||
`(#:tests? #f ; FIXME: Investigate test failures
|
`(#:tests? #f ; FIXME: Investigate test failures
|
||||||
#:configure-flags '("--with-xz" "--with-zlib")))
|
#: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)))
|
||||||
(home-page "https://www.kernel.org/")
|
(home-page "https://www.kernel.org/")
|
||||||
(synopsis "Kernel module tools")
|
(synopsis "Kernel module tools")
|
||||||
(description "kmod is a set of tools to handle common tasks with Linux
|
(description "kmod is a set of tools to handle common tasks with Linux
|
||||||
|
|
Loading…
Reference in New Issue