mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2024-12-25 22:08:16 -05:00
gnu: moreutils: Add more inputs to moreutils.
The included ts command requires the Time::Duration and Date::Parse perl modules for the -r option. * gnu/packages/moreutils.scm (moreutils)[inputs]: Add perl-timedate and perl-time-duration. [arguments]: Wrap ts with PERL5LIB.
This commit is contained in:
parent
065225a42d
commit
c0761f2e7e
1 changed files with 9 additions and 1 deletions
|
@ -52,10 +52,18 @@ (define-public moreutils
|
||||||
("libxml2" ,libxml2)
|
("libxml2" ,libxml2)
|
||||||
("libxslt" ,libxslt)))
|
("libxslt" ,libxslt)))
|
||||||
(inputs
|
(inputs
|
||||||
`(("perl" ,perl)))
|
`(("perl" ,perl)
|
||||||
|
("perl-timedate" ,perl-timedate)
|
||||||
|
("perl-time-duration" ,perl-time-duration)))
|
||||||
(arguments
|
(arguments
|
||||||
`(#:phases
|
`(#:phases
|
||||||
(modify-phases %standard-phases
|
(modify-phases %standard-phases
|
||||||
|
(add-after 'install 'wrap-program
|
||||||
|
(lambda* (#:key outputs #:allow-other-keys)
|
||||||
|
(let* ((out (assoc-ref outputs "out")))
|
||||||
|
(wrap-program
|
||||||
|
(string-append out "/bin/ts")
|
||||||
|
`("PERL5LIB" ":" prefix (,(getenv "PERL5LIB")))))))
|
||||||
(delete 'configure)) ; no configure script
|
(delete 'configure)) ; no configure script
|
||||||
#:make-flags
|
#:make-flags
|
||||||
(list (string-append "PREFIX=" (assoc-ref %outputs "out"))
|
(list (string-append "PREFIX=" (assoc-ref %outputs "out"))
|
||||||
|
|
Loading…
Reference in a new issue