projects/guix·blob javascript-team · refs

56 lines · 2.3 KiB

1;;; GNU Guix --- Functional package management for GNU
2;;; Copyright © 2013 Andreas Enge <[email protected]>
3;;; Copyright © 2014, 2015 Mark H Weaver <[email protected]>
4;;; Copyright © 2016-2018, 2022, 2023 Efraim Flashner <[email protected]>
5;;; Copyright © 2018 Tobias Geerinckx-Rice <[email protected]>
6;;; Copyright © 2020 Michael Rohleder <[email protected]>
7;;; Copyright © 2021 Marius Bakke <[email protected]>
8;;;
9;;; This file is part of GNU Guix.
10;;;
11;;; GNU Guix is free software; you can redistribute it and/or modify it
12;;; under the terms of the GNU General Public License as published by
13;;; the Free Software Foundation; either version 3 of the License, or (at
14;;; your option) any later version.
15;;;
16;;; GNU Guix is distributed in the hope that it will be useful, but
17;;; WITHOUT ANY WARRANTY; without even the implied warranty of
18;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19;;; GNU General Public License for more details.
20;;;
21;;; You should have received a copy of the GNU General Public License
22;;; along with GNU Guix. If not, see <http://www.gnu.org/licenses/>.
23
24(define-module (gnu packages file)
25 #:use-module (gnu packages)
26 #:use-module (guix licenses)
27 #:use-module (guix packages)
28 #:use-module (guix download)
29 #:use-module (guix build-system gnu))
30
31(define-public file
32 (package
33 (name "file")
34 (version "5.46")
35 (source (origin
36 (method url-fetch)
37 (uri (string-append "http://ftp.astron.com/pub/file/file-"
38 version ".tar.gz"))
39 (sha256
40 (base32
41 "1230v1sks2p4ijc7x68iy2z9sqfm17v5lmfwbq9l7ib0qp3pgk69"))))
42 (build-system gnu-build-system)
43
44 ;; When cross-compiling, this package depends upon a native install of
45 ;; itself.
46 (native-inputs (if (%current-target-system)
47 `(("self" ,this-package))
48 '()))
49 (synopsis "File type guesser")
50 (description
51 "The file command is a file type guesser, a command-line tool that tells
52you in words what kind of data a file contains. It does not rely on filename
53extensions to tell you the type of a file, but looks at the actual contents
54of the file. This package provides the libmagic library.")
55 (license bsd-2)
56 (home-page "https://www.darwinsys.com/file/")))