summary refs log tree commit diff
path: root/gnu
diff options
context:
space:
mode:
authorChristopher Baines <mail@cbaines.net>2017-01-21 12:42:54 +0000
committerChristopher Baines <mail@cbaines.net>2017-08-12 22:09:50 +0100
commitc0761f2e7e6797ac12974cddac1d9c7ba7ee28f7 (patch)
treeb057a77facce9a7eafb37b99be7a0217ab9dc30d /gnu
parent065225a42d5555c6727dc26461a6a62867011ac9 (diff)
downloadguix-c0761f2e7e6797ac12974cddac1d9c7ba7ee28f7.tar.gz
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.
Diffstat (limited to 'gnu')
-rw-r--r--gnu/packages/moreutils.scm10
1 files changed, 9 insertions, 1 deletions
diff --git a/gnu/packages/moreutils.scm b/gnu/packages/moreutils.scm
index 03ffa8f992..bb6228af7f 100644
--- a/gnu/packages/moreutils.scm
+++ b/gnu/packages/moreutils.scm
@@ -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"))