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:
Christopher Baines 2017-01-21 12:42:54 +00:00
parent 065225a42d
commit c0761f2e7e
No known key found for this signature in database
GPG key ID: 5E28A33B0B84F577

View file

@ -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"))