1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
| | ;;; GNU Guix --- Functional package management for GNU
;;; Copyright © 2019 John Soo <jsoo1@asu.edu>
;;;
;;; This file is part of GNU Guix.
;;;
;;; GNU Guix is free software; you can redistribute it and/or modify it
;;; under the terms of the GNU General Public License as published by
;;; the Free Software Foundation; either version 3 of the License, or (at
;;; your option) any later version.
;;;
;;; GNU Guix is distributed in the hope that it will be useful, but
;;; WITHOUT ANY WARRANTY; without even the implied warranty of
;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
;;; GNU General Public License for more details.
;;;
;;; You should have received a copy of the GNU General Public License
;;; along with GNU Guix. If not, see <http://www.gnu.org/licenses/>.
(define-module (gnu packages rust-apps)
#:use-module (gnu packages crates-io)
#:use-module (guix build-system cargo)
#:use-module (guix download)
#:use-module ((guix licenses) #:prefix license:)
#:use-module (guix packages))
(define-public ripgrep
(package
(name "ripgrep")
(version "11.0.1")
(source
(origin
(method url-fetch)
(uri (crate-uri "ripgrep" version))
(file-name
(string-append name "-" version ".tar.gz"))
(sha256
(base32
"0bn40lz9n08llq615p4qqqbi24zbkf0appfx3zgxg34a86ga9zds"))))
(build-system cargo-build-system)
(arguments
`(#:cargo-inputs
(("rust-bitflags" ,rust-bitflags-1)
("rust-bstr" ,rust-bstr-0.1)
("rust-grep" ,rust-grep-0.2)
("rust-ignore" ,rust-ignore-0.4)
("rust-itoa" ,rust-itoa-0.4)
("rust-num-cpus" ,rust-num-cpus-1.10)
("rust-proc-macro2" ,rust-proc-macro2-1.0)
("rust-quote" ,rust-quote-1.0)
("rust-ryu" ,rust-ryu-1.0)
("rust-strsim" ,rust-strsim-0.8)
("rust-syn" ,rust-syn-1.0)
("rust-textwrap" ,rust-textwrap-0.11)
("rust-ucd-util" ,rust-ucd-util-0.1)
("rust-unicode-width" ,rust-unicode-width-0.1)
("rust-unicode-xid" ,rust-unicode-xid-0.2)
("rust-winapi" ,rust-winapi-0.3)
("rust-wincolor" ,rust-wincolor-1.0))
#:cargo-development-inputs
(("rust-clap" ,rust-clap-2)
("rust-lazy-static" ,rust-lazy-static-1.3)
("rust-serde" ,rust-serde-1.0)
("rust-serde-derive" ,rust-serde-derive-1.0))))
(home-page
"https://github.com/BurntSushi/ripgrep")
(synopsis
"Line-oriented search tool")
(description
"ripgrep is a line-oriented search tool that recursively searches
your current directory for a regex pattern while respecting your
gitignore rules. ripgrep has first class support on Windows, macOS
and Linux.")
(license `(,license:unlicense ,license:expat))))
|