dev.fron.io rc / b306e68
packages: add nixUnstable + deps Tony Olagbaiye 10 days ago
4 changed file(s) with 1724 addition(s) and 0 deletion(s). Raw diff Collapse all Expand all
0 (define-module (rc packages nix)
1 #:use-module (guix gexp)
2 #:use-module (guix packages)
3 #:use-module (guix download)
4 #:use-module (guix git-download)
5 #:use-module ((guix licenses) #:prefix license:)
6 #:use-module (guix build-system gnu)
7 #:use-module (gnu packages autotools)
8 #:use-module (gnu packages backup)
9 #:use-module (gnu packages bison)
10 #:use-module (gnu packages flex)
11 #:use-module (gnu packages linux)
12 #:use-module (gnu packages package-management)
13 #:use-module (gnu packages web)
14 #:export (nixUnstable))
15
16 (define libcpuid
17 (package
18 (name "libcpuid")
19 (version "0.5.1")
20 (source
21 (origin
22 (method git-fetch)
23 (uri (git-reference
24 (url "https://github.com/anrieff/libcpuid.git")
25 (commit (string-append "v" version))))
26 (sha256
27 (base64
28 "m10LdtwBk1Lx31AJ4HixEYaCkT7EHpF9+tOV1rSA6VU="))
29 (patches
30 (list (plain-file "stdint.patch"
31 "\
32 --- a/libcpuid/libcpuid.h
33 +++ b/libcpuid/libcpuid.h
34 @@ -88 +88 @@
35 -#include "libcpuid_types.h"
36 +#include <stdint.h>
37 ")))))
38 (native-inputs
39 `(("autoconf" ,autoconf)
40 ("automake" ,automake)
41 ("libtool" ,libtool)))
42 (build-system gnu-build-system)
43 (description "A small C library for x86 CPU detection and feature extraction")
44 (synopsis "A small C library for x86 CPU detection and feature extraction")
45 (home-page "http://libcpuid.sourceforge.net/")
46 (license license:bsd-2)))
47
48 (define nixUnstable
49 (package
50 (inherit nix)
51 (name "nix")
52 (version "2.4pre")
53 (source
54 (origin
55 (method git-fetch)
56 (uri (git-reference
57 (url "https://github.com/nixos/nix.git")
58 (commit "5985b8b5275605ddd5e92e2f0a7a9f494ac6e35d")))
59 (sha256
60 (base64
61 "2So7ZsD8QJlOXCYqdoj8naNgBw6O4Vw1MM2ORsaqlXc="))))
62 (inputs
63 (cons*
64 `("libcpuid" ,libcpuid)
65 `("libarchive" ,libarchive)
66 (package-inputs nix)))
67 (native-inputs
68 (cons*
69 `("autoconf" ,autoconf)
70 `("autoconf-archive" ,autoconf-archive)
71 `("automake" ,automake)
72 ;`("m4" ,m4)
73 `("bison" ,bison)
74 `("flex" ,flex)
75 ;`("mdbook" ,mdbook)
76 `("jq" ,jq)
77 ;(lib.getBin lowdown)
78 (package-native-inputs nix)))))
0 diff --git a/Makefile b/Makefile
1 index 955f737..2c9532c 100644
2 --- a/Makefile
3 +++ b/Makefile
4 @@ -80,7 +80,7 @@ REGRESS_ARGS += "--parse-no-autolink"
5 REGRESS_ARGS += "--parse-no-cmark"
6 REGRESS_ARGS += "--parse-no-deflists"
7
8 -all: lowdown lowdown-diff lowdown.pc
9 +all: lowdown lowdown-diff liblowdown.so lowdown.pc
10
11 www: $(HTMLS) $(PDFS) $(THUMBS) lowdown.tar.gz lowdown.tar.gz.sha512
12
13 @@ -101,6 +101,9 @@ lowdown-diff: lowdown
14 liblowdown.a: $(OBJS) $(COMPAT_OBJS)
15 $(AR) rs $@ $(OBJS) $(COMPAT_OBJS)
16
17 +liblowdown.so: $(OBJS) $(COMPAT_OBJS)
18 + $(CC) -shared -o $@ $(OBJS) $(COMPAT_OBJS) $(LDFLAGS)
19 +
20 install: all
21 mkdir -p $(DESTDIR)$(BINDIR)
22 mkdir -p $(DESTDIR)$(LIBDIR)/pkgconfig
23 @@ -111,7 +114,7 @@ install: all
24 $(INSTALL_DATA) lowdown.pc $(DESTDIR)$(LIBDIR)/pkgconfig
25 $(INSTALL_PROGRAM) lowdown $(DESTDIR)$(BINDIR)
26 $(INSTALL_PROGRAM) lowdown-diff $(DESTDIR)$(BINDIR)
27 - $(INSTALL_LIB) liblowdown.a $(DESTDIR)$(LIBDIR)
28 + $(INSTALL_LIB) liblowdown.so $(DESTDIR)$(LIBDIR)
29 $(INSTALL_DATA) lowdown.h $(DESTDIR)$(INCLUDEDIR)
30 for f in $(MANS) ; do \
31 name=`basename $$f .html` ; \
32 @@ -199,7 +202,7 @@ main.o: lowdown.h
33
34 clean:
35 rm -f $(OBJS) $(COMPAT_OBJS) main.o
36 - rm -f lowdown lowdown-diff liblowdown.a lowdown.pc
37 + rm -f lowdown lowdown-diff liblowdown.so lowdown.pc
38 rm -f index.xml diff.xml diff.diff.xml README.xml lowdown.tar.gz.sha512 lowdown.tar.gz
39 rm -f $(PDFS) $(HTMLS) $(THUMBS)
40
0 (define-module (rc packages mdbook)
1 #:use-module (rc packages)
2 #:use-module (guix packages)
3 #:use-module (guix download)
4 #:use-module ((guix licenses) #:prefix license:)
5 #:use-module (guix build-system cargo)
6 #:use-module (gnu packages crates-io)
7 #:export (rust-mdbook-0.4))
8
9 (define rust-select-0.5
10 (package
11 (name "rust-select")
12 (version "0.5.0")
13 (source
14 (origin
15 (method url-fetch)
16 (uri (crate-uri "select" version))
17 (file-name
18 (string-append name "-" version ".tar.gz"))
19 (sha256
20 (base32
21 "1dvnb12fqczq0mqgyh7pafkhngv8478x0y3sxy5ngj7w1bwn3q4f"))))
22 (build-system cargo-build-system)
23 (arguments
24 `(#:skip-build?
25 #t
26 #:cargo-inputs
27 (("rust-bit-set" ,rust-bit-set-0.5)
28 ("rust-html5ever" ,rust-html5ever-0.25)
29 ("rust-markup5ever-rcdom"
30 ,rust-markup5ever-rcdom-0.1))))
31 (home-page
32 "https://github.com/utkarshkukreti/select.rs")
33 (synopsis
34 "A library to extract useful data from HTML documents, suitable for web scraping.")
35 (description
36 "This package provides a library to extract useful data from HTML documents, suitable for web scraping.")
37 (license license:expat)))
38
39 (define rust-shlex-1
40 (package
41 (name "rust-shlex")
42 (version "1.0.0")
43 (source
44 (origin
45 (method url-fetch)
46 (uri (crate-uri "shlex" version))
47 (file-name
48 (string-append name "-" version ".tar.gz"))
49 (sha256
50 (base32
51 "0gf773p2snqpw69rzh8s1wdlq8dc8c1ypmiv516il1fdyb46i9a2"))))
52 (build-system cargo-build-system)
53 (arguments `(#:skip-build? #t))
54 (home-page "https://github.com/comex/rust-shlex")
55 (synopsis
56 "Split a string into shell words, like Python's shlex.
57 ")
58 (description
59 "Split a string into shell words, like Python's shlex.
60 ")
61 (license (list license:expat license:asl2.0))))
62
63 (define rust-pulldown-cmark-0.7
64 (package
65 (name "rust-pulldown-cmark")
66 (version "0.7.2")
67 (source
68 (origin
69 (method url-fetch)
70 (uri (crate-uri "pulldown-cmark" version))
71 (file-name
72 (string-append name "-" version ".tar.gz"))
73 (sha256
74 (base32
75 "0m8z8svkw3cl29gacj6vlmda9a3nfnqf9j550khrfx8q9nlxwdna"))))
76 (build-system cargo-build-system)
77 (arguments
78 `(#:skip-build?
79 #t
80 #:cargo-inputs
81 (("rust-bitflags" ,rust-bitflags-1)
82 ("rust-getopts" ,rust-getopts-0.2)
83 ("rust-memchr" ,rust-memchr-2)
84 ("rust-unicase" ,rust-unicase-2))))
85 (home-page
86 "https://github.com/raphlinus/pulldown-cmark")
87 (synopsis "A pull parser for CommonMark")
88 (description
89 "This package provides a pull parser for CommonMark")
90 (license license:expat)))
91
92 (define rust-smartstring-0.2
93 (package
94 (name "rust-smartstring")
95 (version "0.2.6")
96 (source
97 (origin
98 (method url-fetch)
99 (uri (crate-uri "smartstring" version))
100 (file-name
101 (string-append name "-" version ".tar.gz"))
102 (sha256
103 (base32
104 "1sdsrppmazvzrwbdivqzkfsrp0i6aqbyp7bql7w4rvzq1da8gnhs"))))
105 (build-system cargo-build-system)
106 (arguments
107 `(#:skip-build?
108 #t
109 #:cargo-inputs
110 (("rust-arbitrary" ,rust-arbitrary-0.4)
111 ("rust-proptest" ,rust-proptest-0.10)
112 ("rust-serde" ,rust-serde-1)
113 ("rust-static-assertions"
114 ,rust-static-assertions-1))))
115 (home-page
116 "https://github.com/bodil/smartstring")
117 (synopsis "Compact inlined strings")
118 (description "Compact inlined strings")
119 (license #f)))
120
121 (define rust-socket2-0.4
122 (package
123 (name "rust-socket2")
124 (version "0.4.0")
125 (source
126 (origin
127 (method url-fetch)
128 (uri (crate-uri "socket2" version))
129 (file-name
130 (string-append name "-" version ".tar.gz"))
131 (sha256
132 (base32
133 "18ny6m1gnf6cwp5ax0b5hr36w6yg16z7faj76b31aq2jghhgqgcy"))))
134 (build-system cargo-build-system)
135 (arguments
136 `(#:skip-build?
137 #t
138 #:cargo-inputs
139 (("rust-libc" ,rust-libc-0.2)
140 ("rust-winapi" ,rust-winapi-0.3))))
141 (home-page
142 "https://github.com/rust-lang/socket2")
143 (synopsis
144 "Utilities for handling networking sockets with a maximal amount of configuration
145 possible intended.
146 ")
147 (description
148 "Utilities for handling networking sockets with a maximal amount of configuration
149 possible intended.
150 ")
151 (license (list license:expat license:asl2.0))))
152
153 (define rust-postgres-derive-0.4
154 (package
155 (name "rust-postgres-derive")
156 (version "0.4.0")
157 (source
158 (origin
159 (method url-fetch)
160 (uri (crate-uri "postgres-derive" version))
161 (file-name
162 (string-append name "-" version ".tar.gz"))
163 (sha256
164 (base32
165 "0xqlf1gffy3q8hra3fm0vm9x8i5fkvi0qjl99d0xirxh3hidsmy8"))))
166 (build-system cargo-build-system)
167 (arguments
168 `(#:skip-build?
169 #t
170 #:cargo-inputs
171 (("rust-proc-macro2" ,rust-proc-macro2-1)
172 ("rust-quote" ,rust-quote-1)
173 ("rust-syn" ,rust-syn-1))))
174 (home-page
175 "https://github.com/sfackler/rust-postgres")
176 (synopsis
177 "An internal crate used by postgres-types")
178 (description
179 "An internal crate used by postgres-types")
180 (license (list license:expat license:asl2.0))))
181
182 (define rust-geo-types-0.6
183 (package
184 (name "rust-geo-types")
185 (version "0.6.2")
186 (source
187 (origin
188 (method url-fetch)
189 (uri (crate-uri "geo-types" version))
190 (file-name
191 (string-append name "-" version ".tar.gz"))
192 (sha256
193 (base32
194 "1wivy6r2bzc32gxp5g5j689qz6p9ls5qgq0z8q64aayv3xd950vm"))))
195 (build-system cargo-build-system)
196 (arguments
197 `(#:skip-build?
198 #t
199 #:cargo-inputs
200 (("rust-approx" ,rust-approx-0.3)
201 ("rust-num-traits" ,rust-num-traits-0.2)
202 ("rust-rstar" ,rust-rstar-0.8)
203 ("rust-serde" ,rust-serde-1))))
204 (home-page "https://github.com/georust/geo")
205 (synopsis "Geospatial primitive data types")
206 (description "Geospatial primitive data types")
207 (license (list license:expat license:asl2.0))))
208
209 (define rust-pdqselect-0.1
210 (package
211 (name "rust-pdqselect")
212 (version "0.1.0")
213 (source
214 (origin
215 (method url-fetch)
216 (uri (crate-uri "pdqselect" version))
217 (file-name
218 (string-append name "-" version ".tar.gz"))
219 (sha256
220 (base32
221 "09vwywzavhgqgr3vi2ycgv2nd0067jirv36fb3jvp860xikigjaf"))))
222 (build-system cargo-build-system)
223 (arguments `(#:skip-build? #t))
224 (home-page "")
225 (synopsis
226 "Selects the kth smallest element of a slice, based on Orson Peters's pdqsort")
227 (description
228 "Selects the kth smallest element of a slice, based on Orson Peters's pdqsort")
229 (license (list license:asl2.0 license:expat))))
230
231 (define rust-rstar-0.8
232 (package
233 (name "rust-rstar")
234 (version "0.8.3")
235 (source
236 (origin
237 (method url-fetch)
238 (uri (crate-uri "rstar" version))
239 (file-name
240 (string-append name "-" version ".tar.gz"))
241 (sha256
242 (base32
243 "1b6vjfwvpcgy0q8ywywz548vhxrmhbz2sm6xyhnmj5p5xd1xfqff"))))
244 (build-system cargo-build-system)
245 (arguments
246 `(#:skip-build?
247 #t
248 #:cargo-inputs
249 (("rust-heapless" ,rust-heapless-0.6)
250 ("rust-num-traits" ,rust-num-traits-0.2)
251 ("rust-pdqselect" ,rust-pdqselect-0.1)
252 ("rust-serde" ,rust-serde-1)
253 ("rust-smallvec" ,rust-smallvec-1))))
254 (home-page "https://github.com/Stoeoef/rstar")
255 (synopsis
256 "R*-tree library for the rust ecosystem")
257 (description
258 "R*-tree library for the rust ecosystem")
259 (license (list license:expat license:asl2.0))))
260
261 (define rust-approx-0.4
262 (package
263 (name "rust-approx")
264 (version "0.4.0")
265 (source
266 (origin
267 (method url-fetch)
268 (uri (crate-uri "approx" version))
269 (file-name
270 (string-append name "-" version ".tar.gz"))
271 (sha256
272 (base32
273 "0y52dg58lapl4pp1kqlznfw1blbki0nx6b0aw8kja2yi3gyhaaiz"))))
274 (build-system cargo-build-system)
275 (arguments
276 `(#:skip-build?
277 #t
278 #:cargo-inputs
279 (("rust-num-complex" ,rust-num-complex-0.3)
280 ("rust-num-traits" ,rust-num-traits-0.2))))
281 (home-page
282 "https://github.com/brendanzab/approx")
283 (synopsis
284 "Approximate floating point equality comparisons and assertions.")
285 (description
286 "Approximate floating point equality comparisons and assertions.")
287 (license license:asl2.0)))
288
289 (define rust-geo-types-0.7
290 (package
291 (name "rust-geo-types")
292 (version "0.7.2")
293 (source
294 (origin
295 (method url-fetch)
296 (uri (crate-uri "geo-types" version))
297 (file-name
298 (string-append name "-" version ".tar.gz"))
299 (sha256
300 (base32
301 "1fyj8ldl4xirhr8aawwiaslkklkzml2r5var87vqyp4zvnajxgfq"))))
302 (build-system cargo-build-system)
303 (arguments
304 `(#:skip-build?
305 #t
306 #:cargo-inputs
307 (("rust-approx" ,rust-approx-0.4)
308 ("rust-arbitrary" ,rust-arbitrary-1)
309 ("rust-num-traits" ,rust-num-traits-0.2)
310 ("rust-rstar" ,rust-rstar-0.8)
311 ("rust-serde" ,rust-serde-1))))
312 (home-page "https://github.com/georust/geo")
313 (synopsis "Geospatial primitive data types")
314 (description "Geospatial primitive data types")
315 (license (list license:expat license:asl2.0))))
316
317 (define rust-eui48-0.4
318 (package
319 (name "rust-eui48")
320 (version "0.4.6")
321 (source
322 (origin
323 (method url-fetch)
324 (uri (crate-uri "eui48" version))
325 (file-name
326 (string-append name "-" version ".tar.gz"))
327 (sha256
328 (base32
329 "0sqbmcnvilanzjagknmpf85pnji2b9hn2pqzd5rygrfkwikghk4c"))))
330 (build-system cargo-build-system)
331 (arguments
332 `(#:skip-build?
333 #t
334 #:cargo-inputs
335 (("rust-rustc-serialize"
336 ,rust-rustc-serialize-0.3)
337 ("rust-serde" ,rust-serde-1)
338 ("rust-serde-json" ,rust-serde-json-1))))
339 (home-page "https://github.com/abaumhauer/eui48")
340 (synopsis
341 "A library to generate and parse IEEE EUI-48 and EUI-64, also known as MAC-48 media access
342 control addresses. The IEEE claims trademarks on the names EUI-48 and EUI-64, in which EUI is an
343 abbreviation for Extended Unique Identifier.
344 ")
345 (description
346 "This package provides a library to generate and parse IEEE EUI-48 and EUI-64, also known as MAC-48 media access
347 control addresses. The IEEE claims trademarks on the names EUI-48 and EUI-64, in which EUI is an
348 abbreviation for Extended Unique Identifier.
349 ")
350 (license (list license:expat license:asl2.0))))
351
352 (define rust-bit-vec-0.6
353 (package
354 (name "rust-bit-vec")
355 (version "0.6.3")
356 (source
357 (origin
358 (method url-fetch)
359 (uri (crate-uri "bit-vec" version))
360 (file-name
361 (string-append name "-" version ".tar.gz"))
362 (sha256
363 (base32
364 "1ywqjnv60cdh1slhz67psnp422md6jdliji6alq0gmly2xm9p7rl"))))
365 (build-system cargo-build-system)
366 (arguments
367 `(#:skip-build?
368 #t
369 #:cargo-inputs
370 (("rust-serde" ,rust-serde-1))))
371 (home-page
372 "https://github.com/contain-rs/bit-vec")
373 (synopsis "A vector of bits")
374 (description
375 "This package provides a vector of bits")
376 (license (list license:expat license:asl2.0))))
377
378 (define rust-postgres-types-0.2
379 (package
380 (name "rust-postgres-types")
381 (version "0.2.1")
382 (source
383 (origin
384 (method url-fetch)
385 (uri (crate-uri "postgres-types" version))
386 (file-name
387 (string-append name "-" version ".tar.gz"))
388 (sha256
389 (base32
390 "0brsqkydz0grfy60nc1d0hxa9jbpim0c7c52v467nrdpw4ql23s3"))))
391 (build-system cargo-build-system)
392 (arguments
393 `(#:skip-build?
394 #t
395 #:cargo-inputs
396 (("rust-bit-vec" ,rust-bit-vec-0.6)
397 ("rust-bytes" ,rust-bytes-1)
398 ("rust-chrono" ,rust-chrono-0.4)
399 ("rust-eui48" ,rust-eui48-0.4)
400 ("rust-fallible-iterator"
401 ,rust-fallible-iterator-0.2)
402 ("rust-geo-types" ,rust-geo-types-0.7)
403 ("rust-geo-types" ,rust-geo-types-0.6)
404 ("rust-postgres-derive"
405 ,rust-postgres-derive-0.4)
406 ("rust-postgres-protocol"
407 ,rust-postgres-protocol-0.6)
408 ("rust-serde" ,rust-serde-1)
409 ("rust-serde-json" ,rust-serde-json-1)
410 ("rust-time" ,rust-time-0.2)
411 ("rust-uuid" ,rust-uuid-0.8))))
412 (home-page
413 "https://github.com/sfackler/rust-postgres")
414 (synopsis
415 "Conversions between Rust and Postgres values")
416 (description
417 "Conversions between Rust and Postgres values")
418 (license (list license:expat license:asl2.0))))
419
420 (define rust-hmac-0.10
421 (package
422 (name "rust-hmac")
423 (version "0.10.1")
424 (source
425 (origin
426 (method url-fetch)
427 (uri (crate-uri "hmac" version))
428 (file-name
429 (string-append name "-" version ".tar.gz"))
430 (sha256
431 (base32
432 "058yxq54x7xn0gk2vy9bl51r32c9z7qlcl2b80bjh3lk3rmiqi61"))))
433 (build-system cargo-build-system)
434 (arguments
435 `(#:skip-build?
436 #t
437 #:cargo-inputs
438 (("rust-crypto-mac" ,rust-crypto-mac-0.10)
439 ("rust-digest" ,rust-digest-0.9))))
440 (home-page "https://github.com/RustCrypto/MACs")
441 (synopsis
442 "Generic implementation of Hash-based Message Authentication Code (HMAC)")
443 (description
444 "Generic implementation of Hash-based Message Authentication Code (HMAC)")
445 (license (list license:expat license:asl2.0))))
446
447 (define rust-postgres-protocol-0.6
448 (package
449 (name "rust-postgres-protocol")
450 (version "0.6.1")
451 (source
452 (origin
453 (method url-fetch)
454 (uri (crate-uri "postgres-protocol" version))
455 (file-name
456 (string-append name "-" version ".tar.gz"))
457 (sha256
458 (base32
459 "1wxzs78zvz00bh3bhbbp9hnq9hg77f8h5pzjmcy9481fsdq0ygpz"))))
460 (build-system cargo-build-system)
461 (arguments
462 `(#:skip-build?
463 #t
464 #:cargo-inputs
465 (("rust-base64" ,rust-base64-0.13)
466 ("rust-byteorder" ,rust-byteorder-1)
467 ("rust-bytes" ,rust-bytes-1)
468 ("rust-fallible-iterator"
469 ,rust-fallible-iterator-0.2)
470 ("rust-hmac" ,rust-hmac-0.10)
471 ("rust-md-5" ,rust-md-5-0.9)
472 ("rust-memchr" ,rust-memchr-2)
473 ("rust-rand" ,rust-rand-0.8)
474 ("rust-sha2" ,rust-sha2-0.9)
475 ("rust-stringprep" ,rust-stringprep-0.1))))
476 (home-page
477 "https://github.com/sfackler/rust-postgres")
478 (synopsis "Low level Postgres protocol APIs")
479 (description "Low level Postgres protocol APIs")
480 (license (list license:expat license:asl2.0))))
481
482 (define rust-tokio-postgres-0.7
483 (package
484 (name "rust-tokio-postgres")
485 (version "0.7.2")
486 (source
487 (origin
488 (method url-fetch)
489 (uri (crate-uri "tokio-postgres" version))
490 (file-name
491 (string-append name "-" version ".tar.gz"))
492 (sha256
493 (base32
494 "12rb390i3af7zb0z2idhaf6l2m6snypwdiwjw84rmyz4qy1i6ard"))))
495 (build-system cargo-build-system)
496 (arguments
497 `(#:skip-build?
498 #t
499 #:cargo-inputs
500 (("rust-async-trait" ,rust-async-trait-0.1)
501 ("rust-byteorder" ,rust-byteorder-1)
502 ("rust-bytes" ,rust-bytes-1)
503 ("rust-fallible-iterator"
504 ,rust-fallible-iterator-0.2)
505 ("rust-futures" ,rust-futures-0.3)
506 ("rust-log" ,rust-log-0.4)
507 ("rust-parking-lot" ,rust-parking-lot-0.11)
508 ("rust-percent-encoding"
509 ,rust-percent-encoding-2)
510 ("rust-phf" ,rust-phf-0.8)
511 ("rust-pin-project-lite"
512 ,rust-pin-project-lite-0.2)
513 ("rust-postgres-protocol"
514 ,rust-postgres-protocol-0.6)
515 ("rust-postgres-types" ,rust-postgres-types-0.2)
516 ("rust-socket2" ,rust-socket2-0.4)
517 ("rust-tokio" ,rust-tokio-1)
518 ("rust-tokio-util" ,rust-tokio-util-0.6))))
519 (home-page
520 "https://github.com/sfackler/rust-postgres")
521 (synopsis
522 "A native, asynchronous PostgreSQL client")
523 (description
524 "This package provides a native, asynchronous PostgreSQL client")
525 (license (list license:expat license:asl2.0))))
526
527 (define rust-postgres-0.19
528 (package
529 (name "rust-postgres")
530 (version "0.19.1")
531 (source
532 (origin
533 (method url-fetch)
534 (uri (crate-uri "postgres" version))
535 (file-name
536 (string-append name "-" version ".tar.gz"))
537 (sha256
538 (base32
539 "1hnid1d78zrr8ph12lpvp5b2cpx2fsqqgqs2yn1q23c6g7jix1y7"))))
540 (build-system cargo-build-system)
541 (arguments
542 `(#:skip-build?
543 #t
544 #:cargo-inputs
545 (("rust-bytes" ,rust-bytes-1)
546 ("rust-fallible-iterator"
547 ,rust-fallible-iterator-0.2)
548 ("rust-futures" ,rust-futures-0.3)
549 ("rust-log" ,rust-log-0.4)
550 ("rust-tokio" ,rust-tokio-1)
551 ("rust-tokio-postgres" ,rust-tokio-postgres-0.7))))
552 (home-page
553 "https://github.com/sfackler/rust-postgres")
554 (synopsis
555 "A native, synchronous PostgreSQL client")
556 (description
557 "This package provides a native, synchronous PostgreSQL client")
558 (license (list license:expat license:asl2.0))))
559
560 (define rust-rust-decimal-1
561 (package
562 (name "rust-rust-decimal")
563 (version "1.14.2")
564 (source
565 (origin
566 (method url-fetch)
567 (uri (crate-uri "rust_decimal" version))
568 (file-name
569 (string-append name "-" version ".tar.gz"))
570 (sha256
571 (base32
572 "1k7vwq8jqp8prjzg3ky03knd6wnva8k3jk7n787ml37wf8iyd1wp"))))
573 (build-system cargo-build-system)
574 (arguments
575 `(#:skip-build?
576 #t
577 #:cargo-inputs
578 (("rust-arbitrary" ,rust-arbitrary-1)
579 ("rust-arrayvec" ,rust-arrayvec-0.5)
580 ("rust-byteorder" ,rust-byteorder-1)
581 ("rust-bytes" ,rust-bytes-1)
582 ("rust-diesel" ,rust-diesel-1)
583 ("rust-num-traits" ,rust-num-traits-0.2)
584 ("rust-postgres" ,rust-postgres-0.19)
585 ("rust-serde" ,rust-serde-1)
586 ("rust-serde-json" ,rust-serde-json-1)
587 ("rust-tokio-postgres" ,rust-tokio-postgres-0.7))))
588 (home-page
589 "https://github.com/paupino/rust-decimal")
590 (synopsis
591 "A Decimal Implementation written in pure Rust suitable for financial calculations.")
592 (description
593 "This package provides a Decimal Implementation written in pure Rust suitable for financial calculations.")
594 (license license:expat)))
595
596 (define rust-rhai-codegen-0.3
597 (package
598 (name "rust-rhai-codegen")
599 (version "0.3.6")
600 (source
601 (origin
602 (method url-fetch)
603 (uri (crate-uri "rhai_codegen" version))
604 (file-name
605 (string-append name "-" version ".tar.gz"))
606 (sha256
607 (base32
608 "1z6arm0w14kx9kiznhqzdb6a12y57lcf9brmwfllbzda35yxcgv4"))))
609 (build-system cargo-build-system)
610 (arguments
611 `(#:skip-build?
612 #t
613 #:cargo-inputs
614 (("rust-proc-macro2" ,rust-proc-macro2-1)
615 ("rust-quote" ,rust-quote-1)
616 ("rust-syn" ,rust-syn-1))))
617 (home-page
618 "https://rhai.rs/book/plugins/index.html")
619 (synopsis
620 "Procedural macros support package for Rhai, a scripting language and engine for Rust")
621 (description
622 "Procedural macros support package for Rhai, a scripting language and engine for Rust")
623 (license (list license:expat license:asl2.0))))
624
625 (define rust-hashbrown-0.8
626 (package
627 (name "rust-hashbrown")
628 (version "0.8.2")
629 (source
630 (origin
631 (method url-fetch)
632 (uri (crate-uri "hashbrown" version))
633 (file-name
634 (string-append name "-" version ".tar.gz"))
635 (sha256
636 (base32
637 "09cckr5l71ypvfdbvv1qsag4222blixwn9300hpbr831j3vn46z9"))))
638 (build-system cargo-build-system)
639 (arguments
640 `(#:skip-build?
641 #t
642 #:cargo-inputs
643 (("rust-ahash" ,rust-ahash-0.3)
644 ("rust-autocfg" ,rust-autocfg-1)
645 ("rust-compiler-builtins"
646 ,rust-compiler-builtins-0.1)
647 ("rust-rayon" ,rust-rayon-1)
648 ("rust-rustc-std-workspace-alloc"
649 ,rust-rustc-std-workspace-alloc-1)
650 ("rust-rustc-std-workspace-core"
651 ,rust-rustc-std-workspace-core-1)
652 ("rust-serde" ,rust-serde-1))))
653 (home-page
654 "https://github.com/rust-lang/hashbrown")
655 (synopsis
656 "A Rust port of Google's SwissTable hash map")
657 (description
658 "This package provides a Rust port of Google's SwissTable hash map")
659 (license (list license:asl2.0 license:expat))))
660
661 (define rust-no-std-compat-0.4
662 (package
663 (name "rust-no-std-compat")
664 (version "0.4.1")
665 (source
666 (origin
667 (method url-fetch)
668 (uri (crate-uri "no-std-compat" version))
669 (file-name
670 (string-append name "-" version ".tar.gz"))
671 (sha256
672 (base32
673 "132vrf710zsdp40yp1z3kgc2ss8pi0z4gmihsz3y7hl4dpd56f5r"))))
674 (build-system cargo-build-system)
675 (arguments
676 `(#:skip-build?
677 #t
678 #:cargo-inputs
679 (("rust-hashbrown" ,rust-hashbrown-0.8)
680 ("rust-spin" ,rust-spin-0.5))))
681 (home-page
682 "https://gitlab.com/jD91mZM2/no-std-compat")
683 (synopsis
684 "A `#![no_std]` compatibility layer that will make porting your crate to no_std *easy*.")
685 (description
686 "This package provides a `#![no_std]` compatibility layer that will make porting your crate to no_std *easy*.")
687 (license license:expat)))
688
689 (define rust-core-error-0.0.0
690 (package
691 (name "rust-core-error")
692 (version "0.0.0")
693 (source
694 (origin
695 (method url-fetch)
696 (uri (crate-uri "core-error" version))
697 (file-name
698 (string-append name "-" version ".tar.gz"))
699 (sha256
700 (base32
701 "13wvc7lcpi7f6rr0racns4l52gzpix4xhih6qns30hmn5sbv5kgg"))))
702 (build-system cargo-build-system)
703 (arguments
704 `(#:skip-build?
705 #t
706 #:cargo-inputs
707 (("rust-version-check" ,rust-version-check-0.9))))
708 (home-page
709 "https://github.com/core-error/core-error")
710 (synopsis "std::error::Error for libcore")
711 (description "std::error::Error for libcore")
712 (license (list license:expat license:asl2.0))))
713
714 (define rust-crunchy-0.2
715 (package
716 (name "rust-crunchy")
717 (version "0.2.2")
718 (source
719 (origin
720 (method url-fetch)
721 (uri (crate-uri "crunchy" version))
722 (file-name
723 (string-append name "-" version ".tar.gz"))
724 (sha256
725 (base32
726 "1dx9mypwd5mpfbbajm78xcrg5lirqk7934ik980mmaffg3hdm0bs"))))
727 (build-system cargo-build-system)
728 (arguments `(#:skip-build? #t))
729 (home-page "")
730 (synopsis
731 "Crunchy unroller: deterministically unroll constant loops")
732 (description
733 "Crunchy unroller: deterministically unroll constant loops")
734 (license license:expat)))
735
736 (define rust-tiny-keccak-2
737 (package
738 (name "rust-tiny-keccak")
739 (version "2.0.2")
740 (source
741 (origin
742 (method url-fetch)
743 (uri (crate-uri "tiny-keccak" version))
744 (file-name
745 (string-append name "-" version ".tar.gz"))
746 (sha256
747 (base32
748 "0dq2x0hjffmixgyf6xv9wgsbcxkd65ld0wrfqmagji8a829kg79c"))))
749 (build-system cargo-build-system)
750 (arguments
751 `(#:skip-build?
752 #t
753 #:cargo-inputs
754 (("rust-crunchy" ,rust-crunchy-0.2))))
755 (home-page
756 "https://github.com/debris/tiny-keccak")
757 (synopsis
758 "An implementation of Keccak derived functions.")
759 (description
760 "An implementation of Keccak derived functions.")
761 (license license:cc0)))
762
763 (define rust-const-random-macro-0.1
764 (package
765 (name "rust-const-random-macro")
766 (version "0.1.13")
767 (source
768 (origin
769 (method url-fetch)
770 (uri (crate-uri "const-random-macro" version))
771 (file-name
772 (string-append name "-" version ".tar.gz"))
773 (sha256
774 (base32
775 "0h7vvskw1pw5x44sbl74gsi8ydvrj5kaixpjqzxvz8h0s0knwpv1"))))
776 (build-system cargo-build-system)
777 (arguments
778 `(#:skip-build?
779 #t
780 #:cargo-inputs
781 (("rust-getrandom" ,rust-getrandom-0.2)
782 ("rust-lazy-static" ,rust-lazy-static-1)
783 ("rust-proc-macro-hack"
784 ,rust-proc-macro-hack-0.5)
785 ("rust-tiny-keccak" ,rust-tiny-keccak-2))))
786 (home-page
787 "https://github.com/tkaitchuck/constrandom")
788 (synopsis
789 "Provides the procedural macro used by const-random")
790 (description
791 "This package provides the procedural macro used by const-random")
792 (license (list license:expat license:asl2.0))))
793
794 (define rust-const-random-0.1
795 (package
796 (name "rust-const-random")
797 (version "0.1.13")
798 (source
799 (origin
800 (method url-fetch)
801 (uri (crate-uri "const-random" version))
802 (file-name
803 (string-append name "-" version ".tar.gz"))
804 (sha256
805 (base32
806 "1i3pmhmmcdw3rr1pv1p9yhm4danm5r156cpy7w30pa0s05fxk47m"))))
807 (build-system cargo-build-system)
808 (arguments
809 `(#:skip-build?
810 #t
811 #:cargo-inputs
812 (("rust-const-random-macro"
813 ,rust-const-random-macro-0.1)
814 ("rust-proc-macro-hack"
815 ,rust-proc-macro-hack-0.5))))
816 (home-page
817 "https://github.com/tkaitchuck/constrandom")
818 (synopsis
819 "Provides compile time random number generation.")
820 (description
821 "This package provides compile time random number generation.")
822 (license (list license:expat license:asl2.0))))
823
824 (define rust-ahash-0.7
825 (package
826 (name "rust-ahash")
827 (version "0.7.4")
828 (source
829 (origin
830 (method url-fetch)
831 (uri (crate-uri "ahash" version))
832 (file-name
833 (string-append name "-" version ".tar.gz"))
834 (sha256
835 (base32
836 "163vy6jcd7r3jczsv4zyhlc5x9dqsfgg1yrqbm3xhygr1czq7fs3"))))
837 (build-system cargo-build-system)
838 (arguments
839 `(#:skip-build?
840 #t
841 #:cargo-inputs
842 (("rust-const-random" ,rust-const-random-0.1)
843 ("rust-getrandom" ,rust-getrandom-0.2)
844 ("rust-once-cell" ,rust-once-cell-1)
845 ("rust-serde" ,rust-serde-1)
846 ("rust-version-check" ,rust-version-check-0.9))))
847 (home-page "https://github.com/tkaitchuck/ahash")
848 (synopsis
849 "A non-cryptographic hash function using AES-NI for high performance")
850 (description
851 "This package provides a non-cryptographic hash function using AES-NI for high performance")
852 (license (list license:expat license:asl2.0))))
853
854 (define rust-rhai-0.20
855 (package
856 (name "rust-rhai")
857 (version "0.20.2")
858 (source
859 (origin
860 (method url-fetch)
861 (uri (crate-uri "rhai" version))
862 (file-name
863 (string-append name "-" version ".tar.gz"))
864 (sha256
865 (base32
866 "1kivwx7ljx89ay7khsji75m0l084jk5vk21y0fjx4x3f4cjy2qnq"))))
867 (build-system cargo-build-system)
868 (arguments
869 `(#:skip-build?
870 #t
871 #:cargo-inputs
872 (("rust-ahash" ,rust-ahash-0.7)
873 ("rust-core-error" ,rust-core-error-0.0.0)
874 ("rust-instant" ,rust-instant-0.1)
875 ("rust-libm" ,rust-libm-0.2)
876 ("rust-no-std-compat" ,rust-no-std-compat-0.4)
877 ("rust-num-traits" ,rust-num-traits-0.2)
878 ("rust-rhai-codegen" ,rust-rhai-codegen-0.3)
879 ("rust-rust-decimal" ,rust-rust-decimal-1)
880 ("rust-serde" ,rust-serde-1)
881 ("rust-serde-json" ,rust-serde-json-1)
882 ("rust-smallvec" ,rust-smallvec-1)
883 ("rust-smartstring" ,rust-smartstring-0.2)
884 ("rust-unicode-xid" ,rust-unicode-xid-0.2))))
885 (home-page "https://rhai.rs")
886 (synopsis "Embedded scripting for Rust")
887 (description "Embedded scripting for Rust")
888 (license (list license:expat license:asl2.0))))
889
890 (define rust-quick-error-2
891 (package
892 (name "rust-quick-error")
893 (version "2.0.1")
894 (source
895 (origin
896 (method url-fetch)
897 (uri (crate-uri "quick-error" version))
898 (file-name
899 (string-append name "-" version ".tar.gz"))
900 (sha256
901 (base32
902 "18z6r2rcjvvf8cn92xjhm2qc3jpd1ljvcbf12zv0k9p565gmb4x9"))))
903 (build-system cargo-build-system)
904 (arguments `(#:skip-build? #t))
905 (home-page
906 "http://github.com/tailhook/quick-error")
907 (synopsis
908 " A macro which makes error types pleasant to write.
909 ")
910 (description
911 " A macro which makes error types pleasant to write.
912 ")
913 (license (list license:expat license:asl2.0))))
914
915 (define rust-handlebars-4
916 (package
917 (name "rust-handlebars")
918 (version "4.0.0")
919 (source
920 (origin
921 (method url-fetch)
922 (uri (crate-uri "handlebars" version))
923 (file-name
924 (string-append name "-" version ".tar.gz"))
925 (sha256
926 (base32
927 "0n852lqkzm6sj77lx95qcv5k9pvrds7hl0r9jwn7xx7ymy4zxw18"))))
928 (build-system cargo-build-system)
929 (arguments
930 `(#:skip-build?
931 #t
932 #:cargo-inputs
933 (("rust-log" ,rust-log-0.4)
934 ("rust-pest" ,rust-pest-2)
935 ("rust-pest-derive" ,rust-pest-derive-2)
936 ("rust-quick-error" ,rust-quick-error-2)
937 ("rust-rhai" ,rust-rhai-0.20)
938 ("rust-serde" ,rust-serde-1)
939 ("rust-serde-json" ,rust-serde-json-1)
940 ("rust-walkdir" ,rust-walkdir-2))))
941 (home-page
942 "https://github.com/sunng87/handlebars-rust")
943 (synopsis
944 "Handlebars templating implemented in Rust.")
945 (description
946 "Handlebars templating implemented in Rust.")
947 (license license:expat)))
948
949 (define rust-gitignore-1
950 (package
951 (name "rust-gitignore")
952 (version "1.0.7")
953 (source
954 (origin
955 (method url-fetch)
956 (uri (crate-uri "gitignore" version))
957 (file-name
958 (string-append name "-" version ".tar.gz"))
959 (sha256
960 (base32
961 "197rlas99iqc95fhikyspfa5flhva9pbl1jc8fn9h50ccbj91akq"))))
962 (build-system cargo-build-system)
963 (arguments
964 `(#:skip-build?
965 #t
966 #:cargo-inputs
967 (("rust-glob" ,rust-glob-0.3))))
968 (home-page
969 "https://github.com/nathankleyn/gitignore.rs")
970 (synopsis
971 "Implementation of .gitignore file parsing and glob testing in Rust.")
972 (description
973 "Implementation of .gitignore file parsing and glob testing in Rust.")
974 (license (list license:expat license:asl2.0))))
975
976 (define rust-rust-stemmers-1
977 (package
978 (name "rust-rust-stemmers")
979 (version "1.2.0")
980 (source
981 (origin
982 (method url-fetch)
983 (uri (crate-uri "rust-stemmers" version))
984 (file-name
985 (string-append name "-" version ".tar.gz"))
986 (sha256
987 (base32
988 "0m6acgdflrrcm17dj7lp7x4sfqqhga24qynv660qinwz04v20sp4"))))
989 (build-system cargo-build-system)
990 (arguments
991 `(#:skip-build?
992 #t
993 #:cargo-inputs
994 (("rust-serde" ,rust-serde-1)
995 ("rust-serde-derive" ,rust-serde-derive-1))))
996 (home-page
997 "https://github.com/CurrySoftware/rust-stemmers")
998 (synopsis
999 "A rust implementation of some popular snowball stemming algorithms")
1000 (description
1001 "This package provides a rust implementation of some popular snowball stemming algorithms")
1002 (license (list license:expat license:bsd-3))))
1003
1004 (define rust-lindera-ipadic-0.3
1005 (package
1006 (name "rust-lindera-ipadic")
1007 (version "0.3.3")
1008 (source
1009 (origin
1010 (method url-fetch)
1011 (uri (crate-uri "lindera-ipadic" version))
1012 (file-name
1013 (string-append name "-" version ".tar.gz"))
1014 (sha256
1015 (base32
1016 "04p1xipvalbhndllrr70qbv1ypyfj452yfl6y0glqvss716g84lz"))))
1017 (build-system cargo-build-system)
1018 (arguments
1019 `(#:skip-build?
1020 #t
1021 #:cargo-inputs
1022 (("rust-bincode" ,rust-bincode-1)
1023 ("rust-byteorder" ,rust-byteorder-1)
1024 ("rust-lindera-core" ,rust-lindera-core-0.3))))
1025 (home-page
1026 "https://github.com/lindera-morphology/lindera")
1027 (synopsis
1028 "A Japanese morphological dictionary loader for IPADIC.")
1029 (description
1030 "This package provides a Japanese morphological dictionary loader for IPADIC.")
1031 (license license:expat)))
1032
1033 (define rust-lindera-dictionary-0.3
1034 (package
1035 (name "rust-lindera-dictionary")
1036 (version "0.3.3")
1037 (source
1038 (origin
1039 (method url-fetch)
1040 (uri (crate-uri "lindera-dictionary" version))
1041 (file-name
1042 (string-append name "-" version ".tar.gz"))
1043 (sha256
1044 (base32
1045 "1v5830982nani68q3jslbj64d8sg4wrncn23n2m4zljpc031m9kq"))))
1046 (build-system cargo-build-system)
1047 (arguments
1048 `(#:skip-build?
1049 #t
1050 #:cargo-inputs
1051 (("rust-bincode" ,rust-bincode-1)
1052 ("rust-byteorder" ,rust-byteorder-1)
1053 ("rust-lindera-core" ,rust-lindera-core-0.3))))
1054 (home-page
1055 "https://github.com/lindera-morphology/lindera")
1056 (synopsis "A morphological dictionary loader.")
1057 (description
1058 "This package provides a morphological dictionary loader.")
1059 (license license:expat)))
1060
1061 (define rust-fst-0.3
1062 (package
1063 (name "rust-fst")
1064 (version "0.3.5")
1065 (source
1066 (origin
1067 (method url-fetch)
1068 (uri (crate-uri "fst" version))
1069 (file-name
1070 (string-append name "-" version ".tar.gz"))
1071 (sha256
1072 (base32
1073 "1mpby7wa5mkpgjiilam94a2l9mxx9wpgs3nw2nr1a0czzwsb8zwj"))))
1074 (build-system cargo-build-system)
1075 (arguments
1076 `(#:skip-build?
1077 #t
1078 #:cargo-inputs
1079 (("rust-byteorder" ,rust-byteorder-1)
1080 ("rust-memmap" ,rust-memmap-0.6))))
1081 (home-page "https://github.com/BurntSushi/fst")
1082 (synopsis
1083 "Use finite state transducers to compactly represents sets or maps of many
1084 strings (> 1 billion is possible).
1085 ")
1086 (description
1087 "Use finite state transducers to compactly represents sets or maps of many
1088 strings (> 1 billion is possible).
1089 ")
1090 (license (list license:unlicense license:expat))))
1091
1092 (define rust-levenshtein-automata-0.1
1093 (package
1094 (name "rust-levenshtein-automata")
1095 (version "0.1.1")
1096 (source
1097 (origin
1098 (method url-fetch)
1099 (uri (crate-uri "levenshtein_automata" version))
1100 (file-name
1101 (string-append name "-" version ".tar.gz"))
1102 (sha256
1103 (base32
1104 "1jp8yb4dyqxidp1id16vpgxdhjd2ars9gi0ain6m8s7lfzw0983k"))))
1105 (build-system cargo-build-system)
1106 (arguments
1107 `(#:skip-build?
1108 #t
1109 #:cargo-inputs
1110 (("rust-fst" ,rust-fst-0.3))))
1111 (home-page
1112 "https://github.com/tantivy-search/levenshtein-automata")
1113 (synopsis
1114 "Creates Levenshtein Automata in an efficient manner.")
1115 (description
1116 "Creates Levenshtein Automata in an efficient manner.")
1117 (license license:expat)))
1118
1119 (define rust-lindera-fst-0.1
1120 (package
1121 (name "rust-lindera-fst")
1122 (version "0.1.1")
1123 (source
1124 (origin
1125 (method url-fetch)
1126 (uri (crate-uri "lindera-fst" version))
1127 (file-name
1128 (string-append name "-" version ".tar.gz"))
1129 (sha256
1130 (base32
1131 "1q2a52q0m9y8pr2wi5434z2m41cr5wizlzi25p6rd4k7lry8l2d6"))))
1132 (build-system cargo-build-system)
1133 (arguments
1134 `(#:skip-build?
1135 #t
1136 #:cargo-inputs
1137 (("rust-byteorder" ,rust-byteorder-1)
1138 ("rust-levenshtein-automata"
1139 ,rust-levenshtein-automata-0.1)
1140 ("rust-regex-syntax" ,rust-regex-syntax-0.4)
1141 ("rust-utf8-ranges" ,rust-utf8-ranges-1))))
1142 (home-page
1143 "https://github.com/lindera-morphology/lindera-fst")
1144 (synopsis
1145 "This is a lindera-specific fork from the fst crate from Burntsushi. (Please use the fst crate instead.)")
1146 (description
1147 "This is a lindera-specific fork from the fst crate from Burntsushi. (Please use the fst crate instead.)")
1148 (license (list license:unlicense license:expat))))
1149
1150 (define rust-lindera-core-0.3
1151 (package
1152 (name "rust-lindera-core")
1153 (version "0.3.3")
1154 (source
1155 (origin
1156 (method url-fetch)
1157 (uri (crate-uri "lindera-core" version))
1158 (file-name
1159 (string-append name "-" version ".tar.gz"))
1160 (sha256
1161 (base32
1162 "1zw1nrdm54zpnjd4qknzxdkqiywp41ilqhr8dciw2qfkllrg3dwp"))))
1163 (build-system cargo-build-system)
1164 (arguments
1165 `(#:skip-build?
1166 #t
1167 #:cargo-inputs
1168 (("rust-bincode" ,rust-bincode-1)
1169 ("rust-byteorder" ,rust-byteorder-1)
1170 ("rust-encoding" ,rust-encoding-0.2)
1171 ("rust-lindera-fst" ,rust-lindera-fst-0.1)
1172 ("rust-serde" ,rust-serde-1))))
1173 (home-page
1174 "https://github.com/lindera-morphology/lindera")
1175 (synopsis
1176 "A morphological analysis core library.")
1177 (description
1178 "This package provides a morphological analysis core library.")
1179 (license license:expat)))
1180
1181 (define rust-lindera-0.3
1182 (package
1183 (name "rust-lindera")
1184 (version "0.3.5")
1185 (source
1186 (origin
1187 (method url-fetch)
1188 (uri (crate-uri "lindera" version))
1189 (file-name
1190 (string-append name "-" version ".tar.gz"))
1191 (sha256
1192 (base32
1193 "004c29dbmdhlv9q4n123ya2j9vamp9m1ldmqv2k1kz7md36ngf3i"))))
1194 (build-system cargo-build-system)
1195 (arguments
1196 `(#:skip-build?
1197 #t
1198 #:cargo-inputs
1199 (("rust-bincode" ,rust-bincode-1)
1200 ("rust-byteorder" ,rust-byteorder-1)
1201 ("rust-encoding" ,rust-encoding-0.2)
1202 ("rust-lindera-core" ,rust-lindera-core-0.3)
1203 ("rust-lindera-dictionary"
1204 ,rust-lindera-dictionary-0.3)
1205 ("rust-lindera-fst" ,rust-lindera-fst-0.1)
1206 ("rust-lindera-ipadic" ,rust-lindera-ipadic-0.3)
1207 ("rust-serde" ,rust-serde-1)
1208 ("rust-serde-json" ,rust-serde-json-1))))
1209 (home-page
1210 "https://github.com/lindera-morphology/lindera")
1211 (synopsis "A morphological analysis library.")
1212 (description
1213 "This package provides a morphological analysis library.")
1214 (license license:expat)))
1215
1216 (define rust-cedarwood-0.4
1217 (package
1218 (name "rust-cedarwood")
1219 (version "0.4.4")
1220 (source
1221 (origin
1222 (method url-fetch)
1223 (uri (crate-uri "cedarwood" version))
1224 (file-name
1225 (string-append name "-" version ".tar.gz"))
1226 (sha256
1227 (base32
1228 "13glk5w8hndgy553nrdmqxdvlr0b4s6n0lm4lf680qs1p73q4gln"))))
1229 (build-system cargo-build-system)
1230 (arguments
1231 `(#:skip-build?
1232 #t
1233 #:cargo-inputs
1234 (("rust-smallvec" ,rust-smallvec-1))))
1235 (home-page "https://github.com/MnO2/cedarwood")
1236 (synopsis
1237 "efficiently-updatable double-array trie in Rust (ported from cedar)")
1238 (description
1239 "efficiently-updatable double-array trie in Rust (ported from cedar)")
1240 (license #f)))
1241
1242 (define rust-jieba-rs-0.5
1243 (package
1244 (name "rust-jieba-rs")
1245 (version "0.5.1")
1246 (source
1247 (origin
1248 (method url-fetch)
1249 (uri (crate-uri "jieba-rs" version))
1250 (file-name
1251 (string-append name "-" version ".tar.gz"))
1252 (sha256
1253 (base32
1254 "0z0k1n38s8x0h0rz08rrv41lv9rmmvvl55bxj5h78wlk7rrdx8ic"))))
1255 (build-system cargo-build-system)
1256 (arguments
1257 `(#:skip-build?
1258 #t
1259 #:cargo-inputs
1260 (("rust-cedarwood" ,rust-cedarwood-0.4)
1261 ("rust-hashbrown" ,rust-hashbrown-0.8)
1262 ("rust-lazy-static" ,rust-lazy-static-1)
1263 ("rust-phf" ,rust-phf-0.8)
1264 ("rust-phf-codegen" ,rust-phf-codegen-0.8)
1265 ("rust-regex" ,rust-regex-1))))
1266 (home-page
1267 "https://github.com/messense/jieba-rs")
1268 (synopsis
1269 "The Jieba Chinese Word Segmentation Implemented in Rust")
1270 (description
1271 "The Jieba Chinese Word Segmentation Implemented in Rust")
1272 (license license:expat)))
1273
1274 (define rust-elasticlunr-rs-2
1275 (package
1276 (name "rust-elasticlunr-rs")
1277 (version "2.3.12")
1278 (source
1279 (origin
1280 (method url-fetch)
1281 (uri (crate-uri "elasticlunr-rs" version))
1282 (file-name
1283 (string-append name "-" version ".tar.gz"))
1284 (sha256
1285 (base32
1286 "0066sskvmmmmjvahg5sn6c2qng5fq4pmlx7m89lwxbm734xzg31g"))))
1287 (build-system cargo-build-system)
1288 (arguments
1289 `(#:skip-build?
1290 #t
1291 #:cargo-inputs
1292 (("rust-jieba-rs" ,rust-jieba-rs-0.5)
1293 ("rust-lazy-static" ,rust-lazy-static-1)
1294 ("rust-lindera" ,rust-lindera-0.3)
1295 ("rust-regex" ,rust-regex-1)
1296 ("rust-rust-stemmers" ,rust-rust-stemmers-1)
1297 ("rust-serde" ,rust-serde-1)
1298 ("rust-serde-derive" ,rust-serde-derive-1)
1299 ("rust-serde-json" ,rust-serde-json-1)
1300 ("rust-strum" ,rust-strum-0.18)
1301 ("rust-strum-macros" ,rust-strum-macros-0.18))))
1302 (home-page
1303 "https://github.com/mattico/elasticlunr-rs")
1304 (synopsis
1305 "A partial port of elasticlunr.js to Rust for generating static document search indexes")
1306 (description
1307 "This package provides a partial port of elasticlunr.js to Rust for generating static document search indexes")
1308 (license (list license:expat license:asl2.0))))
1309
1310 (define rust-markup5ever-rcdom-0.1
1311 (package
1312 (name "rust-markup5ever-rcdom")
1313 (version "0.1.0")
1314 (source
1315 (origin
1316 (method url-fetch)
1317 (uri (crate-uri "markup5ever_rcdom" version))
1318 (file-name
1319 (string-append name "-" version ".tar.gz"))
1320 (sha256
1321 (base32
1322 "0axf6vrms8579lvhbjaj0v7bhs8xb7s26d4sam2g3m6qpi1xl5gh"))))
1323 (build-system cargo-build-system)
1324 (arguments
1325 `(#:skip-build?
1326 #t
1327 #:cargo-inputs
1328 (("rust-html5ever" ,rust-html5ever-0.25)
1329 ("rust-markup5ever" ,rust-markup5ever-0.10)
1330 ("rust-tendril" ,rust-tendril-0.4)
1331 ("rust-xml5ever" ,rust-xml5ever-0.16))))
1332 (home-page "https://github.com/servo/html5ever")
1333 (synopsis
1334 "Basic, unsupported DOM structure for use by tests in html5ever/xml5ever")
1335 (description
1336 "Basic, unsupported DOM structure for use by tests in html5ever/xml5ever")
1337 (license (list license:expat license:asl2.0))))
1338
1339 (define rust-ammonia-3
1340 (package
1341 (name "rust-ammonia")
1342 (version "3.1.1")
1343 (source
1344 (origin
1345 (method url-fetch)
1346 (uri (crate-uri "ammonia" version))
1347 (file-name
1348 (string-append name "-" version ".tar.gz"))
1349 (sha256
1350 (base32
1351 "0yb25xrb7bn1s7hchqvpxcv6vhyby0bxypf9xmf7qcvz2pmxdrqy"))))
1352 (build-system cargo-build-system)
1353 (arguments
1354 `(#:skip-build?
1355 #t
1356 #:cargo-inputs
1357 (("rust-html5ever" ,rust-html5ever-0.25)
1358 ("rust-lazy-static" ,rust-lazy-static-1)
1359 ("rust-maplit" ,rust-maplit-1)
1360 ("rust-markup5ever-rcdom"
1361 ,rust-markup5ever-rcdom-0.1)
1362 ("rust-matches" ,rust-matches-0.1)
1363 ("rust-tendril" ,rust-tendril-0.4)
1364 ("rust-url" ,rust-url-2))))
1365 (home-page
1366 "https://github.com/rust-ammonia/ammonia")
1367 (synopsis "HTML Sanitization")
1368 (description "HTML Sanitization")
1369 (license (list license:expat license:asl2.0))))
1370
1371 (define rust-mdbook-0.4
1372 (package
1373 (name "rust-mdbook")
1374 (version "0.4.10")
1375 (source
1376 (origin
1377 (method url-fetch)
1378 (uri (crate-uri "mdBook" version))
1379 (file-name
1380 (string-append name "-" version ".tar.gz"))
1381 (sha256
1382 (base32
1383 "11gslsrfy7yszsg6klfkfk73szhihwdxjrr3skhagm70kmh0xnmn"))))
1384 (build-system cargo-build-system)
1385 (arguments
1386 `(#:cargo-inputs
1387 (("rust-ammonia" ,rust-ammonia-3)
1388 ("rust-anyhow" ,rust-anyhow-1)
1389 ("rust-chrono" ,rust-chrono-0.4)
1390 ("rust-clap" ,rust-clap-2)
1391 ("rust-elasticlunr-rs" ,rust-elasticlunr-rs-2)
1392 ("rust-env-logger" ,rust-env-logger-0.7)
1393 ("rust-futures-util" ,rust-futures-util-0.3)
1394 ("rust-gitignore" ,rust-gitignore-1)
1395 ("rust-handlebars" ,rust-handlebars-4)
1396 ("rust-lazy-static" ,rust-lazy-static-1)
1397 ("rust-log" ,rust-log-0.4)
1398 ("rust-memchr" ,rust-memchr-2)
1399 ("rust-notify" ,rust-notify-4)
1400 ("rust-open" ,rust-open-1)
1401 ("rust-pulldown-cmark" ,rust-pulldown-cmark-0.7)
1402 ("rust-regex" ,rust-regex-1)
1403 ("rust-serde" ,rust-serde-1)
1404 ("rust-serde-derive" ,rust-serde-derive-1)
1405 ("rust-serde-json" ,rust-serde-json-1)
1406 ("rust-shlex" ,rust-shlex-1)
1407 ("rust-tempfile" ,rust-tempfile-3)
1408 ("rust-tokio" ,rust-tokio-0.2)
1409 ("rust-toml" ,rust-toml-0.5)
1410 ("rust-warp" ,rust-warp-0.2))
1411 #:cargo-development-inputs
1412 (("rust-pretty-assertions"
1413 ,rust-pretty-assertions-0.6)
1414 ("rust-select" ,rust-select-0.5)
1415 ("rust-semver" ,rust-semver-0.11)
1416 ("rust-walkdir" ,rust-walkdir-2))
1417 #:tests? #f))
1418 (home-page "https://github.com/rust-lang/mdBook")
1419 (synopsis "Creates a book from markdown files")
1420 (description
1421 "Creates a book from markdown files")
1422 (license license:mpl2.0)))
1423
0 (define-module (rc packages nix)
1 #:use-module (rc packages)
2 #:use-module (guix gexp)
3 #:use-module (guix utils)
4 #:use-module (guix packages)
5 #:use-module (guix download)
6 #:use-module (guix git-download)
7 #:use-module ((guix licenses) #:prefix license:)
8 #:use-module (guix build-system cargo)
9 #:use-module (guix build-system cmake)
10 #:use-module (guix build-system gnu)
11 #:use-module (gnu packages autotools)
12 #:use-module (gnu packages backup)
13 #:use-module (gnu packages base)
14 #:use-module (gnu packages bison)
15 #:use-module (gnu packages compression)
16 #:use-module (gnu packages crates-io)
17 #:use-module (gnu packages flex)
18 #:use-module (gnu packages gcc)
19 #:use-module (gnu packages linux)
20 #:use-module (gnu packages package-management)
21 #:use-module (gnu packages web)
22 #:use-module (rc packages mdbook)
23 #:export (nixUnstable))
24
25 (define libcpuid
26 (package
27 (name "libcpuid")
28 (version "0.5.1")
29 (source
30 (origin
31 (method git-fetch)
32 (uri (git-reference
33 (url "https://github.com/anrieff/libcpuid.git")
34 (commit (string-append "v" version))))
35 (sha256
36 (base64
37 "m10LdtwBk1Lx31AJ4HixEYaCkT7EHpF9+tOV1rSA6VU="))
38 (patches (search-patches "libcpuid-stdint.patch"))))
39 (build-system gnu-build-system)
40 (native-inputs
41 `(("autoconf" ,autoconf)
42 ("automake" ,automake)
43 ("libtool" ,libtool)))
44 (description "A small C library for x86 CPU detection and feature extraction")
45 (synopsis "A small C library for x86 CPU detection and feature extraction")
46 (home-page "http://libcpuid.sourceforge.net/")
47 (license license:bsd-2)))
48
49 (define gtest
50 (package
51 (name "gtest")
52 (version "1.10.0")
53 (source
54 (origin
55 (method git-fetch)
56 (uri (git-reference
57 (url "https://github.com/google/googletest.git")
58 (commit (string-append "release-" version))))
59 (sha256
60 (base32
61 "1zbmab9295scgg4z2vclgfgjchfjailjnvzc6f5x9jvlsdi3dpwz"))))
62 (build-system cmake-build-system)
63 (description "Google's framework for writing C++ tests")
64 (synopsis "Google's framework for writing C++ tests")
65 (home-page "https://github.com/google/googletest")
66 (license license:bsd-3)))
67
68 (define nlohmann_json
69 (package
70 (name "nlohmann_json")
71 (version "3.9.2pre")
72 (source
73 (origin
74 (method git-fetch)
75 (uri (git-reference
76 (url "https://github.com/nlohmann/json.git")
77 (commit "e10a3fac8a255433146e3f06a703dc110fc3c3da")))
78 (sha256
79 (base32
80 "11c494ibq5q9fi92qkq08d0a2q9qk8sa0hhnl6lcdb9pg7v0m19y"))))
81 (build-system cmake-build-system)
82 (arguments
83 `(#:configure-flags (list "-DBuildTests=OFF"
84 "-DJSON_MultipleHeaders=ON")
85 #:tests? #f))
86 (description "Header only C++ library for the JSON file format")
87 (synopsis "Header only C++ library for the JSON file format")
88 (home-page "http://github.com/nlohmann/json")
89 (license license:expat)))
90
91 (define lowdown
92 (package
93 (name "lowdown")
94 (version "0.8.4")
95 (source
96 (origin
97 (method url-fetch)
98 (uri (string-append
99 "https://kristaps.bsd.lv/lowdown/snapshots/lowdown-"
100 version
101 ".tar.gz"))
102 (sha256
103 (base32
104 "1f6lpyz5bbvwqadal8xcfjcm46zcycrgk5079isjyipg85zdyvb2"))
105 (patches (search-patches "lowdown-shared.patch"))))
106 (build-system gnu-build-system)
107 (native-inputs
108 `(("autoconf" ,autoconf)
109 ("automake" ,automake)
110 ("libtool" ,libtool)
111 ("which" ,which)))
112 (arguments
113 `(#:configure-flags '()
114 #:make-flags '("CFLAGS=-fPIC")
115 #:phases (modify-phases
116 %standard-phases
117 (replace 'configure
118 (lambda* (#:key inputs outputs configure-flags #:allow-other-keys)
119 ;; The configure script does not accept environment variables
120 ;; as arguments.
121 (let ((out (assoc-ref outputs "out")))
122 (setenv "SHELL" (which "sh"))
123 (setenv "CONFIG_SHELL" (which "sh"))
124 ;(setenv "AUTOCONF" (string-append (assoc-ref inputs "autoconf")
125 ; "/bin/autoconf"))
126 (apply invoke "./configure"
127 (cons (string-append "PREFIX=" out)
128 configure-flags)))))
129 (replace 'check
130 (lambda _ (invoke "make" "regress"))))))
131 (description "Simple markdown translator")
132 (synopsis "Simple markdown translator")
133 (home-page "https://kristaps.bsd.lv/lowdown/")
134 (license license:isc)))
135
136 (define nixUnstable
137 (package
138 (inherit nix)
139 (name "nix")
140 (version "2.4pre")
141 (source
142 (origin
143 (method git-fetch)
144 (uri (git-reference
145 (url "https://github.com/nixos/nix.git")
146 (commit "5985b8b5275605ddd5e92e2f0a7a9f494ac6e35d")))
147 (sha256
148 (base64
149 "2So7ZsD8QJlOXCYqdoj8naNgBw6O4Vw1MM2ORsaqlXc="))))
150 (arguments
151 (substitute-keyword-arguments (package-arguments nix)
152 ((#:configure-flags configure-flags)
153 `(cons*
154 "--enable-gc"
155 ,configure-flags))
156 ((#:make-flags make-flags)
157 `(cons*
158 "CXXFLAGS=-Xc"
159 ,make-flags))))
160 (inputs
161 (cons*
162 `("gtest" ,gtest)
163 `("libarchive" ,libarchive)
164 `("libcpuid" ,libcpuid)
165 `("nlohmann_json" ,nlohmann_json)
166 `("zlib" ,zlib)
167 (package-inputs nix)))
168 (native-inputs
169 (cons*
170 `("autoconf" ,autoconf)
171 `("autoconf-archive" ,autoconf-archive)
172 `("automake" ,automake)
173 `("bison" ,bison)
174 `("flex" ,flex)
175 `("gcc" ,gcc-10)
176 `("jq" ,jq)
177 `("lowdown" ,lowdown)
178 `("rust-mdbook" ,rust-mdbook-0.4)
179 (package-native-inputs nix)))))