diff options
Diffstat (limited to 'gnu/packages/code.scm')
| -rw-r--r-- | gnu/packages/code.scm | 55 |
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 @@ | |||
| 54 | control flow of the program. It can output the graph in several styles and | 57 | control flow of the program. It can output the graph in several styles and |
| 55 | in either the POSIX format or in an extended GNU format. cflow also includes | 58 | in either the POSIX format or in an extended GNU format. cflow also includes |
| 56 | a major mode for Emacs for examining the flowcharts that it produces.") | 59 | a 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.") | |||
| 78 | convoluted, overly long or otherwise difficult to understand. This | 81 | convoluted, overly long or otherwise difficult to understand. This |
| 79 | may help in learning or reviewing unfamiliar code or perhaps | 82 | may help in learning or reviewing unfamiliar code or perhaps |
| 80 | highlighting your own code that seemed comprehensible when you wrote it.") | 83 | highlighting 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.") | |||
| 119 | across a wide array of environments, such as different text editors, shells | 122 | across a wide array of environments, such as different text editors, shells |
| 120 | and web browsers. The resulting tags are useful for quickly moving around in | 123 | and web browsers. The resulting tags are useful for quickly moving around in |
| 121 | a large, deeply nested project.") | 124 | a 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 | |||
| 175 | measure a wide range of programming languages. It automatically estimates the | 178 | measure a wide range of programming languages. It automatically estimates the |
| 176 | effort, time, and money it would take to develop the software, using the | 179 | effort, time, and money it would take to develop the software, using the |
| 177 | COCOMO model or user-provided parameters.") | 180 | COCOMO 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 | ||
| 221 | files, but compared to grep is much faster and respects files like .gitignore, | ||
| 222 | .hgignore, etc.") | ||
| 223 | (license license:asl2.0))) | ||
