61bdd71cfe25e084cce2f37d575c029a2e882149
[jackhill/guix/guix.git] / distro / packages / file.scm
1 ;;; GNU Guix --- Functional package management for GNU
2 ;;; Copyright © 2013 Andreas Enge <andreas@enge.fr>
3 ;;;
4 ;;; This file is part of GNU Guix.
5 ;;;
6 ;;; GNU 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 ;;; GNU 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 GNU Guix. If not, see <http://www.gnu.org/licenses/>.
18
19 (define-module (distro packages file)
20 #:use-module (distro)
21 #:use-module (guix licenses)
22 #:use-module (guix packages)
23 #:use-module (guix download)
24 #:use-module (guix build-system gnu))
25
26 (define-public file
27 (package
28 (name "file")
29 (version "5.12")
30 (source (origin
31 (method url-fetch)
32 (uri (string-append "ftp://ftp.astron.com/pub/file/file-"
33 version ".tar.gz"))
34 (sha256 (base32
35 "08ix4xrvan0k80n0l5lqfmc4azjv5lyhvhwdxny4r09j5smhv78r"))))
36 (build-system gnu-build-system)
37 (synopsis "file, a file type guesser")
38 (description
39 "The file command is a file type guesser, a command-line tool that tells
40 you in words what kind of data a file contains. It does not rely on filename
41 extentions to tell you the type of a file, but looks at the actual contents
42 of the file.")
43 (license bsd-2)
44 (home-page "http://www.darwinsys.com/file/")))