You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

58 lines
2.2 KiB

  1. ;;; GNU Guix --- Functional package management for GNU
  2. ;;; Copyright © 2012 Nikita Karetnikov <nikita@karetnikov.org>
  3. ;;; Copyright © 2013 Ludovic Courtès <ludo@gnu.org>
  4. ;;;
  5. ;;; This file is part of GNU Guix.
  6. ;;;
  7. ;;; GNU Guix is free software; you can redistribute it and/or modify it
  8. ;;; under the terms of the GNU General Public License as published by
  9. ;;; the Free Software Foundation; either version 3 of the License, or (at
  10. ;;; your option) any later version.
  11. ;;;
  12. ;;; GNU Guix is distributed in the hope that it will be useful, but
  13. ;;; WITHOUT ANY WARRANTY; without even the implied warranty of
  14. ;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  15. ;;; GNU General Public License for more details.
  16. ;;;
  17. ;;; You should have received a copy of the GNU General Public License
  18. ;;; along with GNU Guix. If not, see <http://www.gnu.org/licenses/>.
  19. (define-module (gnu packages time)
  20. #:use-module (guix licenses)
  21. #:use-module (guix packages)
  22. #:use-module (guix download)
  23. #:use-module (guix build-system gnu))
  24. (define-public time
  25. (package
  26. (name "time")
  27. (version "1.7")
  28. (source
  29. (origin
  30. (method url-fetch)
  31. (uri (string-append "mirror://gnu/time/time-"
  32. version ".tar.gz"))
  33. (sha256
  34. (base32
  35. "0va9063fcn7xykv658v2s9gilj2fq4rcdxx2mn2mmy1v4ndafzp3"))))
  36. (build-system gnu-build-system)
  37. (arguments
  38. '(#:phases
  39. (alist-replace 'configure
  40. (lambda* (#:key outputs #:allow-other-keys)
  41. ;; This old `configure' script doesn't support
  42. ;; variables passed as arguments.
  43. (let ((out (assoc-ref outputs "out")))
  44. (setenv "CONFIG_SHELL" (which "bash"))
  45. (zero?
  46. (system* "./configure"
  47. (string-append "--prefix=" out)))))
  48. %standard-phases)))
  49. (home-page "http://www.gnu.org/software/time/")
  50. (synopsis "Run a command, then display its resource usage")
  51. (description
  52. "Time is a command that displays information about the resources that a
  53. program uses. The display output of the program can be customized or saved
  54. to a file.")
  55. (license gpl2+)))