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.
master
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
1 changed files with 9 additions and 1 deletions

View File

@ -52,10 +52,18 @@
("libxml2" ,libxml2)
("libxslt" ,libxslt)))
(inputs
`(("perl" ,perl)))
`(("perl" ,perl)
("perl-timedate" ,perl-timedate)
("perl-time-duration" ,perl-time-duration)))
(arguments
`(#: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
#:make-flags
(list (string-append "PREFIX=" (assoc-ref %outputs "out"))