distro: Add GNU Time.
[jackhill/guix/guix.git] / distro / packages / time.scm
1 ;;; Guix --- Nix package management from Guile. -*- coding: utf-8 -*-
2 ;;; Copyright (C) 2012 Nikita Karetnikov <nikita@karetnikov.org>
3 ;;;
4 ;;; This file is part of Guix.
5 ;;;
6 ;;; Guix is free software; you can redistribute it and/or modify it
7 ;;; under the terms of the GNU General Public License as published by
8 ;;; the Free Software Foundation; either version 3 of the License, or (at
9 ;;; your option) any later version.
10 ;;;
11 ;;; Guix is distributed in the hope that it will be useful, but
12 ;;; WITHOUT ANY WARRANTY; without even the implied warranty of
13 ;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 ;;; GNU General Public License for more details.
15 ;;;
16 ;;; You should have received a copy of the GNU General Public License
17 ;;; along with Guix. If not, see <http://www.gnu.org/licenses/>.
18
19 (define-module (distro packages time)
20 #:use-module (guix packages)
21 #:use-module (guix download)
22 #:use-module (guix build-system gnu))
23
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 (home-page "http://www.gnu.org/software/time/")
38 (synopsis
39 "GNU Time, a tool that runs programs and summarizes the system
40 resources they use")
41 (description
42 "The 'time' command runs another program, then displays information
43 about the resources used by that program, collected by the system while
44 the program was running. You can select which information is reported
45 and the format in which it is shown, or have 'time' save the information
46 in a file instead of displaying it on the screen.
47
48 The resources that 'time' can report on fall into the general categories
49 of time, memory, and I/O and IPC calls. Some systems do not provide
50 much information about program resource use; 'time' reports unavailable
51 information as zero values.
52 ")
53 (license "GPLv2+")))