gnu: youtube-viewer: Add '$out/lib/perl5/site_perl/' to search path.
Fixes <https://bugs.gnu.org/30671>. Reported by Ricardo Wurmus <rekado@elephly.net>. * gnu/packages/video.scm (youtube-viewer)[arguments]: In 'wrap-program' phase, add '$out/lib/perl5/site_perl/' to search path. Signed-off-by: Ludovic Courtès <ludo@gnu.org>
This commit is contained in:
parent
270750d440
commit
63d9900296
|
@ -1344,14 +1344,16 @@ audio, images) from the Web. It can use either mpv or vlc for playback.")
|
|||
(guix build utils)
|
||||
(srfi srfi-26))
|
||||
#:module-build-flags '("--gtk")
|
||||
#:phases (modify-phases %standard-phases
|
||||
#:phases
|
||||
(modify-phases %standard-phases
|
||||
(add-after 'install 'wrap-program
|
||||
(lambda* (#:key outputs #:allow-other-keys)
|
||||
(let ((bin-dir (string-append (assoc-ref outputs "out")
|
||||
"/bin/"))
|
||||
(perl-path (getenv "PERL5LIB")))
|
||||
(let* ((out (assoc-ref outputs "out"))
|
||||
(bin-dir (string-append out "/bin/"))
|
||||
(site-dir (string-append out "/lib/perl5/site_perl/"))
|
||||
(lib-path (getenv "PERL5LIB")))
|
||||
(for-each (cut wrap-program <>
|
||||
`("PERL5LIB" ":" prefix (,perl-path)))
|
||||
`("PERL5LIB" ":" prefix (,lib-path ,site-dir)))
|
||||
(find-files bin-dir))
|
||||
#t))))))
|
||||
(synopsis
|
||||
|
|
Loading…
Reference in New Issue