Commit | Line | Data |
---|---|---|
0a2d61a5 EF |
1 | ;;; GNU Guix --- Functional package management for GNU |
2 | ;;; Copyright © 2020 Efraim Flashner <efraim@flashner.co.il> | |
3 | ;;; | |
4 | ;;; This file is part of GNU Guix. | |
5 | ;;; | |
6 | ;;; GNU Guix is free software; you can redistribute it and/or modify it | |
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 | ;;; | |
11 | ;;; GNU Guix is distributed in the hope that it will be useful, but | |
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 | |
17 | ;;; along with GNU Guix. If not, see <http://www.gnu.org/licenses/>. | |
18 | ||
19 | (define-module (gnu packages node-xyz) | |
20 | #:use-module ((guix licenses) #:prefix license:) | |
21 | #:use-module (guix packages) | |
22 | #:use-module (guix git-download) | |
23 | #:use-module (guix build-system node)) | |
24 | ||
317f925b EF |
25 | (define-public node-color-name |
26 | (package | |
27 | (name "node-color-name") | |
28 | (version "1.1.3") | |
29 | (source | |
30 | (origin | |
31 | (method git-fetch) | |
32 | (uri (git-reference | |
33 | (url "https://github.com/colorjs/color-name") | |
34 | (commit (string-append "v" version)))) | |
35 | (file-name (git-file-name name version)) | |
36 | (sha256 | |
37 | (base32 | |
38 | "09rbmj16nfwcwkhrybqxyy66bkrs50vpw6hkdqqb14l3gsyxpr74")))) | |
39 | (build-system node-build-system) | |
40 | (home-page "https://github.com/colorjs/color-name") | |
41 | (synopsis "JSON with CSS color names") | |
42 | (description | |
43 | "This package provides a JSON list with color names and their values.") | |
44 | (license license:expat))) | |
45 | ||
0a2d61a5 EF |
46 | (define-public node-env-variable |
47 | (package | |
48 | (name "node-env-variable") | |
49 | (version "0.0.4") | |
50 | (source | |
51 | (origin | |
52 | (method git-fetch) | |
53 | (uri (git-reference | |
54 | (url "https://github.com/bigpipe/env-variable") | |
55 | (commit version))) | |
56 | (file-name (git-file-name name version)) | |
57 | (sha256 | |
58 | (base32 | |
59 | "0nnpxjxfhy4na7fixb7p3ww6ard5xgggfm83b78i333867r4gmsq")))) | |
60 | (build-system node-build-system) | |
61 | (arguments '(#:tests? #f)) ; No tests. | |
62 | (home-page "https://github.com/bigpipe/env-variable") | |
63 | (synopsis "Environment variables for Node with fallbacks") | |
64 | (description "This package provides environment variables with | |
65 | @code{process.env}, @code{window.name}, @code{location.hash} and | |
66 | @code{localStorage} fallbacks.") | |
67 | (license license:expat))) | |
2f2e7be9 | 68 | |
1c83b1c0 EF |
69 | (define-public node-far |
70 | (package | |
71 | (name "node-far") | |
72 | (version "0.0.7") | |
73 | (source | |
74 | (origin | |
75 | (method git-fetch) | |
76 | (uri (git-reference | |
77 | (url "https://github.com/felixge/node-far") | |
78 | (commit (string-append "v" version)))) | |
79 | (file-name (git-file-name name version)) | |
80 | (sha256 | |
81 | (base32 | |
82 | "083rv1rszjn0i91zcpaghlid0kwhk0angmpj4hiflrlyhd6cmjzw")))) | |
83 | (build-system node-build-system) | |
84 | (arguments | |
85 | '(#:phases | |
86 | (modify-phases %standard-phases | |
87 | (replace 'check | |
88 | (lambda _ | |
89 | ;; We skip the two tests which are supposed to fail. | |
90 | (invoke "bin/node-far" "-v" "test/" "-e" "test.*fail.js")))))) | |
91 | (inputs | |
92 | `(("node-oop" ,node-oop))) | |
93 | (home-page "https://github.com/felixge/node-far") | |
94 | (synopsis "Node.js test runner") | |
95 | (description "This package provides a simple test runner that finds and runs | |
96 | multiple node.js files, while providing useful information about output and exit | |
97 | codes.") | |
98 | (license license:expat))) | |
2f2e7be9 EF |
99 | |
100 | (define-public node-long-stack-traces | |
101 | (package | |
102 | (name "node-long-stack-traces") | |
103 | (version "0.1.2") | |
104 | (source | |
105 | (origin | |
106 | (method git-fetch) | |
107 | (uri (git-reference | |
108 | (url "https://github.com/tlrobinson/long-stack-traces") | |
109 | (commit (string-append "v" version)))) | |
110 | (file-name (git-file-name name version)) | |
111 | (sha256 | |
112 | (base32 | |
113 | "0famwsyc6xawi30v25zi65d8fhbvlvh976bqydf1dqn5gz200cl3")))) | |
114 | (build-system node-build-system) | |
115 | (arguments '(#:tests? #f)) ; No tests. | |
116 | (home-page "https://github.com/tlrobinson/long-stack-traces") | |
117 | (synopsis "Long stacktraces implemented in user-land JavaScript") | |
118 | (description "This package provides long stacktraces for V8 implemented in | |
119 | user-land JavaScript.") | |
120 | (license license:expat))) ; in README | |
a971890b EF |
121 | |
122 | (define-public node-mersenne | |
123 | (package | |
124 | (name "node-mersenne") | |
125 | (version "0.0.4") | |
126 | (source | |
127 | (origin | |
128 | (method git-fetch) | |
129 | (uri (git-reference | |
130 | (url "https://github.com/jwatte/node-mersenne") | |
131 | ;; The actual release lacks a git tag. | |
132 | (commit "f9fa01694ee49d6ae6ff9d90cfda594bddd3ccef"))) | |
133 | (file-name (git-file-name name version)) | |
134 | (sha256 | |
135 | (base32 | |
136 | "034iaiq2pdqn342p2404cpz364g282d2hkp9375hysnh9i968wbb")))) | |
137 | (build-system node-build-system) | |
138 | (arguments '(#:tests? #f)) ; No tests. | |
139 | (home-page "http://www.enchantedage.com/node-mersenne") | |
140 | (synopsis "Node.js module for generating Mersenne Twister random numbers") | |
141 | (description "Thix package provides a node.js port of the Mersenne Twister | |
142 | random number generator.") | |
143 | (license license:bsd-3))) | |
c8bbff7e | 144 | |
f6b8bd6e EF |
145 | (define-public node-oop |
146 | ;; No releases, last commit was February 2013. | |
147 | (let ((commit "f9d87cda0958886955c14a0a716e57021ed295dc") | |
148 | (revision "1")) | |
149 | (package | |
150 | (name "node-oop") | |
151 | (version (git-version "0.0.0" revision commit)) | |
152 | (source | |
153 | (origin | |
154 | (method git-fetch) | |
155 | (uri (git-reference | |
156 | (url "https://github.com/felixge/node-oop") | |
157 | (commit commit))) | |
158 | (file-name (git-file-name name version)) | |
159 | (sha256 | |
160 | (base32 | |
161 | "0mqrcf0xi2jbwffwkk00cljpqfsri1jk8s6kz8jny45apn7zjds1")))) | |
162 | (build-system node-build-system) | |
163 | (arguments '(#:tests? #f)) ; Tests run during build phase. | |
164 | (home-page "https://github.com/felixge/node-oop") | |
165 | (synopsis "Simple, light-weight oop module for Node") | |
166 | (description "This library tries to bring basic oop features to JavaScript | |
167 | while being as light-weight and simple as possible.") | |
168 | (license license:expat)))) | |
169 | ||
1c8d53f8 EF |
170 | (define-public node-stack-trace |
171 | ;; There have been improvements since the last release. | |
172 | (let ((commit "4fd379ee78965ce7ce8820b436f1b1b590d5dbcf") | |
173 | (revision "1")) | |
174 | (package | |
175 | (name "node-stack-trace") | |
176 | (version (git-version "0.0.10" revision commit)) | |
177 | (source | |
178 | (origin | |
179 | (method git-fetch) | |
180 | (uri (git-reference | |
181 | (url "https://github.com/felixge/node-stack-trace") | |
182 | (commit commit))) | |
183 | (file-name (git-file-name name version)) | |
184 | (sha256 | |
185 | (base32 | |
186 | "1pk19wcpy8i95z5jr77fybd57qj7xmzmniap4dy47vjlmpkqia4i")))) | |
187 | (build-system node-build-system) | |
188 | (arguments | |
189 | '(#:phases | |
190 | (modify-phases %standard-phases | |
191 | (add-before 'check 'skip-intentionally-failing-test | |
192 | (lambda _ | |
193 | (substitute* "test/run.js" | |
194 | (("far.include") "far.exclude(/test-parse.js/)\nfar.include")) | |
195 | #t))))) | |
196 | (native-inputs | |
197 | `(("node-far" ,node-far) | |
198 | ("node-long-stack-traces" ,node-long-stack-traces))) | |
199 | (home-page "https://github.com/felixge/node-stack-trace") | |
200 | (synopsis "Get v8 stack traces as an array of CallSite objects") | |
201 | (description "Get v8 stack traces as an array of CallSite objects.") | |
202 | (license license:expat)))) | |
203 | ||
c8bbff7e EF |
204 | (define-public node-statsd-parser |
205 | (package | |
206 | (name "node-statsd-parser") | |
207 | (version "0.0.4") | |
208 | (source | |
209 | (origin | |
210 | (method git-fetch) | |
211 | (uri (git-reference | |
212 | (url "https://github.com/dscape/statsd-parser") | |
213 | (commit version))) | |
214 | (file-name (git-file-name name version)) | |
215 | (sha256 | |
216 | (base32 | |
217 | "049rnczsd6pv6bk282q4w72bhqc5cs562djgr7yncy7lk0wzq5j3")))) | |
218 | (build-system node-build-system) | |
219 | (arguments '(#:tests? #f)) ; No tests. | |
220 | (home-page "https://github.com/dscape/statsd-parser") | |
221 | (synopsis "Streaming parser for the statsd protocol") | |
222 | (description "This package provides a streaming parser for the statsd | |
223 | protocol used in @code{node-lynx}.") | |
224 | (license license:asl2.0))) | |
d1095c47 EF |
225 | |
226 | (define-public node-util-deprecate | |
227 | (package | |
228 | (name "node-util-deprecate") | |
229 | (version "1.0.2") | |
230 | (source | |
231 | (origin | |
232 | (method git-fetch) | |
233 | (uri (git-reference | |
234 | (url "https://github.com/TooTallNate/util-deprecate") | |
235 | (commit version))) | |
236 | (file-name (git-file-name name version)) | |
237 | (sha256 | |
238 | (base32 | |
239 | "1rk94nl3qc7znsk8400bnga30v0m7j2mmvz9ldwjinxv1d3n11xc")))) | |
240 | (build-system node-build-system) | |
241 | (arguments '(#:tests? #f)) ; No test suite. | |
242 | (home-page "https://github.com/TooTallNate/util-deprecate") | |
243 | (synopsis "Node.js `util.deprecate()` function with browser support") | |
244 | (description "This package provides the Node.js @code{util.deprecate()} | |
245 | function with browser support.") | |
246 | (license license:expat))) |