summaryrefslogtreecommitdiff
path: root/gnu/packages/code.scm
diff options
context:
space:
mode:
authorTomáš Čech <sleep_walker@gnu.org>2015-03-19 14:38:58 +0100
committerTomáš Čech <sleep_walker@gnu.org>2015-03-22 22:04:31 +0100
commitd13586bfe489a9afcb7eb241ff6030a1341baf3c (patch)
tree6bbdf9f7eefc6ddd0cc931c37620b1ead2075ea5 /gnu/packages/code.scm
parent38829eac4ba820daeaa8911187b841276e6990a9 (diff)
gnu: Add the-silver-searcher.
* gnu/packages/code.scm (the-silver-searcher): New variable.
Diffstat (limited to 'gnu/packages/code.scm')
-rw-r--r--gnu/packages/code.scm55
1 files changed, 50 insertions, 5 deletions
diff --git a/gnu/packages/code.scm b/gnu/packages/code.scm
index 7799e38930f..ad61b85afc2 100644
--- a/gnu/packages/code.scm
+++ b/gnu/packages/code.scm
@@ -20,9 +20,12 @@
20(define-module (gnu packages code) 20(define-module (gnu packages code)
21 #:use-module (guix packages) 21 #:use-module (guix packages)
22 #:use-module (guix download) 22 #:use-module (guix download)
23 #:use-module (guix licenses) 23 #:use-module ((guix licenses) #:prefix license:)
24 #:use-module (guix build-system gnu) 24 #:use-module (guix build-system gnu)
25 #:use-module (gnu packages compression)
25 #:use-module (gnu packages emacs) 26 #:use-module (gnu packages emacs)
27 #:use-module (gnu packages pcre)
28 #:use-module (gnu packages pkg-config)
26 #:use-module (gnu packages perl) 29 #:use-module (gnu packages perl)
27 #:use-module (gnu packages texinfo) 30 #:use-module (gnu packages texinfo)
28 #:use-module (gnu packages autogen) 31 #:use-module (gnu packages autogen)
@@ -54,7 +57,7 @@
54control flow of the program. It can output the graph in several styles and 57control flow of the program. It can output the graph in several styles and
55in either the POSIX format or in an extended GNU format. cflow also includes 58in either the POSIX format or in an extended GNU format. cflow also includes
56a major mode for Emacs for examining the flowcharts that it produces.") 59a major mode for Emacs for examining the flowcharts that it produces.")
57 (license gpl3+))) 60 (license license:gpl3+)))
58 61
59(define-public complexity 62(define-public complexity
60 (package 63 (package
@@ -78,7 +81,7 @@ a major mode for Emacs for examining the flowcharts that it produces.")
78convoluted, overly long or otherwise difficult to understand. This 81convoluted, overly long or otherwise difficult to understand. This
79may help in learning or reviewing unfamiliar code or perhaps 82may help in learning or reviewing unfamiliar code or perhaps
80highlighting your own code that seemed comprehensible when you wrote it.") 83highlighting your own code that seemed comprehensible when you wrote it.")
81 (license gpl3+))) 84 (license license:gpl3+)))
82 85
83(define-public global ; a global variable 86(define-public global ; a global variable
84 (package 87 (package
@@ -119,7 +122,7 @@ highlighting your own code that seemed comprehensible when you wrote it.")
119across a wide array of environments, such as different text editors, shells 122across a wide array of environments, such as different text editors, shells
120and web browsers. The resulting tags are useful for quickly moving around in 123and web browsers. The resulting tags are useful for quickly moving around in
121a large, deeply nested project.") 124a large, deeply nested project.")
122 (license gpl3+))) 125 (license license:gpl3+)))
123 126
124(define-public sloccount 127(define-public sloccount
125 (package 128 (package
@@ -175,4 +178,46 @@ code (SLOC) in large software systems. It can automatically identify and
175measure a wide range of programming languages. It automatically estimates the 178measure a wide range of programming languages. It automatically estimates the
176effort, time, and money it would take to develop the software, using the 179effort, time, and money it would take to develop the software, using the
177COCOMO model or user-provided parameters.") 180COCOMO model or user-provided parameters.")
178 (license gpl2+))) 181 (license license:gpl2+)))
182
183(define-public the-silver-searcher
184 (package
185 (name "the-silver-searcher")
186 (version "0.29.1")
187 (source (origin
188 (method url-fetch)
189 (uri (string-append
190 "https://github.com/ggreer/the_silver_searcher/archive/"
191 version ".tar.gz"))
192 (sha256
193 (base32
194 "0ah7vcqprl9hhafi68bvzaiywy7dfm28zf7kpw3xrlqzfn0vg7kp"))
195 (file-name (string-append name "-" version ".tar.gz"))))
196 (build-system gnu-build-system)
197 (native-inputs
198 `(("autoconf" ,autoconf)
199 ("automake" ,automake)
200 ("libtool" ,libtool)
201 ("pkg-config" ,pkg-config)))
202 (inputs
203 `(("pcre" ,pcre)
204 ("xz" ,xz)
205 ("zlib" ,zlib)))
206 (arguments
207 `(#:phases
208 ;; There is no configure yet, so let's create it, but let configure and
209 ;; make do the work in later phases.
210 (alist-cons-before 'configure 'autoconf
211 (lambda _
212 (substitute* "build.sh"
213 (("./configure") "true")
214 (("make -j4") "true"))
215 (zero? (system* "sh" "build.sh")))
216 %standard-phases)))
217 (home-page "http://geoff.greer.fm/ag/")
218 (synopsis "Fast code searching tool")
219 (description
220 "The silver searcher, or 'ag', is tool for quickly searching through
221files, but compared to grep is much faster and respects files like .gitignore,
222.hgignore, etc.")
223 (license license:asl2.0)))