~ruther/guix-local

c0761f2e7e6797ac12974cddac1d9c7ba7ee28f7 — Christopher Baines 9 years ago 065225a
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.
1 files changed, 9 insertions(+), 1 deletions(-)

M gnu/packages/moreutils.scm
M gnu/packages/moreutils.scm => gnu/packages/moreutils.scm +9 -1
@@ 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"))