Re-export `%current-system' from (guix packages).
[jackhill/guix/guix.git] / gnu / packages / which.scm
CommitLineData
233e7676
LC
1;;; GNU Guix --- Functional package management for GNU
2;;; Copyright © 2012 Nikita Karetnikov <nikita@karetnikov.org>
6e6979c6 3;;;
233e7676 4;;; This file is part of GNU Guix.
6e6979c6 5;;;
233e7676 6;;; GNU Guix is free software; you can redistribute it and/or modify it
6e6979c6
NK
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;;;
233e7676 11;;; GNU Guix is distributed in the hope that it will be useful, but
6e6979c6
NK
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
233e7676 17;;; along with GNU Guix. If not, see <http://www.gnu.org/licenses/>.
6e6979c6 18
1ffa7090 19(define-module (gnu packages which)
4a44e743 20 #:use-module (guix licenses)
6e6979c6
NK
21 #:use-module (guix packages)
22 #:use-module (guix download)
23 #:use-module (guix build-system gnu))
24
25(define-public which
26 (package
27 (name "which")
28 (version "2.20")
29 (source
30 (origin
31 (method url-fetch)
32 (uri (string-append "mirror://gnu/which/which-"
33 version ".tar.gz"))
34 (sha256
35 (base32
36 "1y2p50zadb36izzh2zw4dm5hvdiydqf3qa88l8kav20dcmfbc5yl"))))
37 (build-system gnu-build-system)
38 (home-page "https://gnu.org/software/which/")
39 (synopsis
40 "GNU Which shows the full path of (shell) commands")
41 (description
42 "GNU Which takes one or more arguments. For each of its arguments
43it prints to stdout the full path of the executables that would have
44been executed when this argument had been entered at the shell
45prompt. It does this by searching for an executable or script in the
46directories listed in the environment variable PATH using the same
47algorithm as bash(1).")
4a44e743 48 (license gpl3+))) ; some files are under GPLv2+