gnu: Add rust-pango-sys-0.10.
[jackhill/guix/guix.git] / gnu / packages / crates-gtk.scm
CommitLineData
a9c04753
EF
1;;; GNU Guix --- Functional package management for GNU
2;;; Copyright © 2020 Efraim Flashner <efraim@flashner.co.il>
6920ffdd 3;;; Copyright © 2020 Nicolas Goaziou <mail@nicolasgoaziou.fr>
a9c04753
EF
4;;;
5;;; This file is part of GNU Guix.
6;;;
7;;; GNU Guix is free software; you can redistribute it and/or modify it
8;;; under the terms of the GNU General Public License as published by
9;;; the Free Software Foundation; either version 3 of the License, or (at
10;;; your option) any later version.
11;;;
12;;; GNU Guix is distributed in the hope that it will be useful, but
13;;; WITHOUT ANY WARRANTY; without even the implied warranty of
14;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15;;; GNU General Public License for more details.
16;;;
17;;; You should have received a copy of the GNU General Public License
18;;; along with GNU Guix. If not, see <http://www.gnu.org/licenses/>.
19
20(define-module (gnu packages crates-gtk)
21 #:use-module (guix build-system cargo)
22 #:use-module (guix download)
23 #:use-module ((guix licenses) #:prefix license:)
24 #:use-module (guix packages)
25 #:use-module (gnu packages)
26 #:use-module (gnu packages crates-io)
9f86a6da 27 #:use-module (gnu packages crates-graphics)
a9c04753
EF
28 #:use-module (gnu packages glib)
29 #:use-module (gnu packages gtk))
30
31;;;
32;;; Please: Try to add new module packages in alphabetic order.
33;;;
34
35(define-public rust-cairo-rs-0.8
36 (package
37 (name "rust-cairo-rs")
38 (version "0.8.1")
39 (source
40 (origin
41 (method url-fetch)
42 (uri (crate-uri "cairo-rs" version))
43 (file-name
44 (string-append name "-" version ".tar.gz"))
45 (sha256
46 (base32
47 "11303v1fv6hsc9n70ak380gknkf0098phpcxqdhkmahqjsx4jw0m"))))
48 (build-system cargo-build-system)
49 (arguments
50 `(#:cargo-inputs
51 (("rust-bitflags" ,rust-bitflags-1)
52 ("rust-cairo-sys-rs" ,rust-cairo-sys-rs-0.9)
53 ("rust-glib" ,rust-glib-0.9)
54 ("rust-glib-sys" ,rust-glib-sys-0.9)
55 ("rust-gobject-sys" ,rust-gobject-sys-0.9)
56 ("rust-libc" ,rust-libc-0.2))
57 #:cargo-development-inputs
58 (("rust-gtk-rs-lgpl-docs" ,rust-gtk-rs-lgpl-docs-0.1)
59 ("rust-tempfile" ,rust-tempfile-3))))
60 (inputs
61 `(("cairo" ,cairo)))
62 (home-page "https://gtk-rs.org/")
63 (synopsis "Rust bindings for the Cairo library")
64 (description
65 "Rust bindings for the Cairo library.")
66 (license license:expat)))
67
68(define-public rust-cairo-rs-0.7
69 (package
70 (inherit rust-cairo-rs-0.8)
71 (name "rust-cairo-rs")
72 (version "0.7.1")
73 (source
74 (origin
75 (method url-fetch)
76 (uri (crate-uri "cairo-rs" version))
77 (file-name
78 (string-append name "-" version ".tar.gz"))
79 (sha256
80 (base32
81 "171m98g41avp5mmshqir4ka21napp7ma5fx45wi9mw5hwdyv8pg0"))))
82 (arguments
83 `(#:cargo-inputs
84 (("rust-bitflags" ,rust-bitflags-1)
85 ("rust-cairo-sys-rs" ,rust-cairo-sys-rs-0.9)
86 ("rust-glib" ,rust-glib-0.8)
87 ("rust-glib-sys" ,rust-glib-sys-0.9)
88 ("rust-gobject-sys" ,rust-gobject-sys-0.9)
89 ("rust-libc" ,rust-libc-0.2)
90 ("rust-gtk-rs-lgpl-docs" ,rust-gtk-rs-lgpl-docs-0.1))
91 #:cargo-development-inputs
92 (("rust-tempfile" ,rust-tempfile-3))))))
93
94(define-public rust-cairo-sys-rs-0.9
95 (package
96 (name "rust-cairo-sys-rs")
97 (version "0.9.2")
98 (source
99 (origin
100 (method url-fetch)
101 (uri (crate-uri "cairo-sys-rs" version))
102 (file-name
103 (string-append name "-" version ".tar.gz"))
104 (sha256
105 (base32
106 "0qsdy6s57yvscg2rfm7wdqrlhzbn1aq9lhk3dy1vw5f7r81blrgz"))))
107 (build-system cargo-build-system)
108 (arguments
109 `(#:cargo-inputs
110 (("rust-glib-sys" ,rust-glib-sys-0.9)
111 ("rust-libc" ,rust-libc-0.2)
112 ("rust-winapi" ,rust-winapi-0.3)
113 ("rust-x11" ,rust-x11-2)
114 ("rust-pkg-config" ,rust-pkg-config-0.3))))
115 (inputs
116 `(("cairo" ,cairo)))
117 (home-page "https://gtk-rs.org/")
118 (synopsis "FFI bindings to libcairo")
119 (description "This package provides FFI bindings to libcairo.")
120 (license license:expat)))
121
122(define-public rust-gdk-pixbuf-0.8
123 (package
124 (name "rust-gdk-pixbuf")
125 (version "0.8.0")
126 (source
127 (origin
128 (method url-fetch)
129 (uri (crate-uri "gdk-pixbuf" version))
130 (file-name
131 (string-append name "-" version ".tar.gz"))
132 (sha256
133 (base32
134 "1mxxca0fkcw2rsd3kl3nvlb8ys4cgxqx4n5isjbv0adk8q624j72"))))
135 (build-system cargo-build-system)
136 (arguments
137 `(#:cargo-inputs
138 (("rust-gdk-pixbuf-sys" ,rust-gdk-pixbuf-sys-0.9)
139 ("rust-gio" ,rust-gio-0.8)
140 ("rust-gio-sys" ,rust-gio-sys-0.9)
141 ("rust-glib" ,rust-glib-0.9)
142 ("rust-glib-sys" ,rust-glib-sys-0.9)
143 ("rust-gobject-sys" ,rust-gobject-sys-0.9)
144 ("rust-libc" ,rust-libc-0.2)
145 ("rust-gtk-rs-lgpl-docs" ,rust-gtk-rs-lgpl-docs-0.1))
146 #:cargo-development-inputs
147 (("rust-gir-format-check" ,rust-gir-format-check-0.1))))
148 (inputs
149 `(("gdk-pixbuf" ,gdk-pixbuf)))
150 (home-page "https://gtk-rs.org/")
151 (synopsis "Rust bindings for the GdkPixbuf library")
152 (description
153 "Rust bindings for the GdkPixbuf library.")
154 (license license:expat)))
155
156(define-public rust-gdk-pixbuf-0.7
157 (package
158 (inherit rust-gdk-pixbuf-0.8)
159 (name "rust-gdk-pixbuf")
160 (version "0.7.0")
161 (source
162 (origin
163 (method url-fetch)
164 (uri (crate-uri "gdk-pixbuf" version))
165 (file-name
166 (string-append name "-" version ".tar.gz"))
167 (sha256
168 (base32
169 "1k2g3w2p57m68bi5sldvkmgjgslgqswrjsijjhqaibdvw67409lp"))))
170 (arguments
171 `(#:cargo-inputs
172 (("rust-fragile" ,rust-fragile-0.3)
173 ("rust-futures-preview" ,rust-futures-preview-0.3)
174 ("rust-gdk-pixbuf-sys" ,rust-gdk-pixbuf-sys-0.9)
175 ("rust-gio" ,rust-gio-0.7)
176 ("rust-gio-sys" ,rust-gio-sys-0.9)
177 ("rust-glib" ,rust-glib-0.8)
178 ("rust-glib-sys" ,rust-glib-sys-0.9)
179 ("rust-gobject-sys" ,rust-gobject-sys-0.9)
180 ("rust-libc" ,rust-libc-0.2)
181 ("rust-gtk-rs-lgpl-docs" ,rust-gtk-rs-lgpl-docs-0.1))
182 #:cargo-development-inputs
183 (("rust-gir-format-check" ,rust-gir-format-check-0.1))))))
184
185(define-public rust-gdk-pixbuf-sys-0.9
186 (package
187 (name "rust-gdk-pixbuf-sys")
188 (version "0.9.1")
189 (source
190 (origin
191 (method url-fetch)
192 (uri (crate-uri "gdk-pixbuf-sys" version))
193 (file-name
194 (string-append name "-" version ".tar.gz"))
195 (sha256
196 (base32
197 "1c2andpjb10y7bahh6nxnksh9m3g5qh4mgq9znx634cy1831p6fq"))))
198 (build-system cargo-build-system)
199 (arguments
200 `(#:tests? #f ; tests not included in release
201 #:cargo-inputs
202 (("rust-gio-sys" ,rust-gio-sys-0.9)
203 ("rust-glib-sys" ,rust-glib-sys-0.9)
204 ("rust-gobject-sys" ,rust-gobject-sys-0.9)
205 ("rust-libc" ,rust-libc-0.2)
206 ("rust-pkg-config" ,rust-pkg-config-0.3))
207 #:cargo-development-inputs
208 (("rust-shell-words" ,rust-shell-words-0.1)
209 ("rust-tempfile" ,rust-tempfile-3))))
210 (inputs
211 `(("gdk-pixbuf" ,gdk-pixbuf)))
212 (home-page "https://gtk-rs.org/")
213 (synopsis "FFI bindings to libgdk_pixbuf-2.0")
214 (description "This package provides FFI bindings to @code{libgdk_pixbuf-2.0}.")
215 (license license:expat)))
216
217(define-public rust-gio-0.8
218 (package
219 (name "rust-gio")
220 (version "0.8.1")
221 (source
222 (origin
223 (method url-fetch)
224 (uri (crate-uri "gio" version))
225 (file-name
226 (string-append name "-" version ".tar.gz"))
227 (sha256
228 (base32
229 "19cnla2ya0mi6wwaabd5mxbq2kzq46dg6jq2z19rpqyc2na0zl8c"))))
230 (build-system cargo-build-system)
231 (arguments
232 `(#:tests? #f ; Not all files included in the tarball.
233 #:cargo-inputs
234 (("rust-bitflags" ,rust-bitflags-1)
235 ("rust-futures-channel" ,rust-futures-channel-0.3)
236 ("rust-futures-core" ,rust-futures-core-0.3)
237 ("rust-futures-io" ,rust-futures-io-0.3)
238 ("rust-futures-util" ,rust-futures-util-0.3)
239 ("rust-gio-sys" ,rust-gio-sys-0.9)
240 ("rust-glib" ,rust-glib-0.9)
241 ("rust-glib-sys" ,rust-glib-sys-0.9)
242 ("rust-gobject-sys" ,rust-gobject-sys-0.9)
243 ("rust-lazy-static" ,rust-lazy-static-1)
244 ("rust-libc" ,rust-libc-0.2)
245 ("rust-gtk-rs-lgpl-docs" ,rust-gtk-rs-lgpl-docs-0.1))
246 #:cargo-development-inputs
247 (("rust-gir-format-check" ,rust-gir-format-check-0.1)
248 ("rust-serial-test" ,rust-serial-test-0.1)
249 ("rust-serial-test-derive" ,rust-serial-test-derive-0.1))))
250 (inputs
251 `(("glib" ,glib)))
252 (home-page "https://gtk-rs.org/")
253 (synopsis "Rust bindings for the Gio library")
254 (description "Rust bindings for the Gio library.")
255 (license license:expat)))
256
257(define-public rust-gio-0.7
258 (package
259 (inherit rust-gio-0.8)
260 (name "rust-gio")
261 (version "0.7.0")
262 (source
263 (origin
264 (method url-fetch)
265 (uri (crate-uri "gio" version))
266 (file-name
267 (string-append name "-" version ".tar.gz"))
268 (sha256
269 (base32
270 "1qv0wc1hqyb81c03h81s3xrl9jslrw23fr4yhygxbhih9k9vaqb2"))))
271 (arguments
272 `(#:cargo-inputs
273 (("rust-bitflags" ,rust-bitflags-1)
274 ("rust-fragile" ,rust-fragile-0.3)
275 ("rust-futures-preview" ,rust-futures-preview-0.3)
276 ("rust-gio-sys" ,rust-gio-sys-0.9)
277 ("rust-glib" ,rust-glib-0.8)
278 ("rust-glib-sys" ,rust-glib-sys-0.9)
279 ("rust-gobject-sys" ,rust-gobject-sys-0.9)
280 ("rust-lazy-static" ,rust-lazy-static-1)
281 ("rust-libc" ,rust-libc-0.2)
282 ("rust-gtk-rs-lgpl-docs" ,rust-gtk-rs-lgpl-docs-0.1))
283 #:cargo-development-inputs
284 (("rust-gir-format-check" ,rust-gir-format-check-0.1))))))
285
286(define-public rust-gio-sys-0.9
287 (package
288 (name "rust-gio-sys")
289 (version "0.9.1")
290 (source
291 (origin
292 (method url-fetch)
293 (uri (crate-uri "gio-sys" version))
294 (file-name
295 (string-append name "-" version ".tar.gz"))
296 (sha256
297 (base32
298 "049rafihxp3maxg3fwj6062ni9dcfilvhfq6ibnfgsmr89925bag"))))
299 (build-system cargo-build-system)
300 (arguments
301 `(#:tests? #f ; Some test libraries not included in release.
302 #:cargo-inputs
303 (("rust-glib-sys" ,rust-glib-sys-0.9)
304 ("rust-gobject-sys" ,rust-gobject-sys-0.9)
305 ("rust-libc" ,rust-libc-0.2)
306 ("rust-pkg-config" ,rust-pkg-config-0.3))
307 #:cargo-development-inputs
308 (("rust-shell-words" ,rust-shell-words-0.1)
309 ("rust-tempfile" ,rust-tempfile-3))))
310 (inputs
311 `(("glib" ,glib)))
312 (home-page "http://gtk-rs.org/")
313 (synopsis "FFI bindings to libgio-2.0")
314 (description "This package provides FFI bindings to libgio-2.0.")
315 (license license:expat)))
316
317(define-public rust-gir-format-check-0.1
318 (package
319 (name "rust-gir-format-check")
320 (version "0.1.1")
321 (source
322 (origin
323 (method url-fetch)
324 (uri (crate-uri "gir-format-check" version))
325 (file-name
326 (string-append name "-" version ".tar.gz"))
327 (sha256
328 (base32
329 "0znl4qcgmg0656zk9vjkwdn9wj1zpkd0m0l5jnzmahd80ii7vf4b"))))
330 (build-system cargo-build-system)
331 (home-page "https://github.com/gtk-rs/gir-format-check")
332 (synopsis "File format checker")
333 (description "File format checker in Rust.")
334 (license license:expat)))
335
aca8767a
NG
336(define-public rust-glib-0.10
337 (package
338 (name "rust-glib")
339 (version "0.10.3")
340 (source
341 (origin
342 (method url-fetch)
343 (uri (crate-uri "glib" version))
344 (file-name (string-append name "-" version ".tar.gz"))
345 (sha256
346 (base32 "1ifh56nhvhcrssxqkad876qqrlnl16q6b8ap3f7ncpjinw9m0s0c"))))
347 (build-system cargo-build-system)
348 (arguments
349 `(#:skip-build? #t
350 #:cargo-inputs
351 (("rust-bitflags" ,rust-bitflags-1)
352 ("rust-futures-channel" ,rust-futures-channel-0.3)
353 ("rust-futures-core" ,rust-futures-core-0.3)
354 ("rust-futures-executor" ,rust-futures-executor-0.3)
355 ("rust-futures-preview" ,rust-futures-preview-0.3)
356 ("rust-futures-task" ,rust-futures-task-0.3)
357 ("rust-futures-util" ,rust-futures-util-0.3)
358 ("rust-glib-macros" ,rust-glib-macros-0.10)
359 ("rust-glib-sys" ,rust-glib-sys-0.10)
360 ("rust-gobject-sys" ,rust-gobject-sys-0.10)
361 ("rust-libc" ,rust-libc-0.2)
362 ("rust-once-cell" ,rust-once-cell-1))))
363 (inputs
364 `(("glib" ,glib)))
365 (home-page "http://gtk-rs.org/")
366 (synopsis "Rust bindings for the GLib library")
367 (description "Rust bindings for the GLib library")
368 (license license:expat)))
369
a9c04753
EF
370(define-public rust-glib-0.9
371 (package
aca8767a 372 (inherit rust-glib-0.10)
a9c04753
EF
373 (name "rust-glib")
374 (version "0.9.3")
375 (source
376 (origin
377 (method url-fetch)
378 (uri (crate-uri "glib" version))
379 (file-name
380 (string-append name "-" version ".tar.gz"))
381 (sha256
382 (base32
383 "1h3100mf7kdfxibjz5na0sqzbd2mcsyd8pzivn3666w414x5gys0"))))
a9c04753
EF
384 (arguments
385 `(#:cargo-inputs
386 (("rust-bitflags" ,rust-bitflags-1)
387 ("rust-futures-channel" ,rust-futures-channel-0.3)
388 ("rust-futures-core" ,rust-futures-core-0.3)
389 ("rust-futures-executor" ,rust-futures-executor-0.3)
390 ("rust-futures-preview" ,rust-futures-preview-0.3)
391 ("rust-futures-task" ,rust-futures-task-0.3)
392 ("rust-futures-util" ,rust-futures-util-0.3)
393 ("rust-glib-sys" ,rust-glib-sys-0.9)
394 ("rust-gobject-sys" ,rust-gobject-sys-0.9)
395 ("rust-lazy-static" ,rust-lazy-static-1)
396 ("rust-libc" ,rust-libc-0.2))
397 #:cargo-development-inputs
aca8767a 398 (("rust-tempfile" ,rust-tempfile-3))))))
a9c04753
EF
399
400(define-public rust-glib-0.8
401 (package
402 (inherit rust-glib-0.9)
403 (name "rust-glib")
404 (version "0.8.2")
405 (source
406 (origin
407 (method url-fetch)
408 (uri (crate-uri "glib" version))
409 (file-name
410 (string-append name "-" version ".tar.gz"))
411 (sha256
412 (base32
413 "0ysy87zrwyzhfpf3d8rkyyr3amwj85wky05fsl7kx95s84l269xy"))))
414 (arguments
415 `(#:cargo-inputs
416 (("rust-bitflags" ,rust-bitflags-1)
417 ("rust-futures-preview" ,rust-futures-preview-0.3)
418 ("rust-glib-sys" ,rust-glib-sys-0.9)
419 ("rust-gobject-sys" ,rust-gobject-sys-0.9)
420 ("rust-lazy-static" ,rust-lazy-static-1)
421 ("rust-libc" ,rust-libc-0.2))
422 #:cargo-development-inputs
423 (("rust-tempfile" ,rust-tempfile-3))))))
424
0b1e39bb
NG
425(define-public rust-glib-macros-0.10
426 (package
427 (name "rust-glib-macros")
428 (version "0.10.1")
429 (source
430 (origin
431 (method url-fetch)
432 (uri (crate-uri "glib-macros" version))
433 (file-name (string-append name "-" version ".tar.gz"))
434 (sha256
435 (base32 "0fa00s6gnj3hgri9z926199jidczlmjr1db0n4r80sins4k6lj21"))))
436 (build-system cargo-build-system)
437 (arguments
438 `(#:skip-build? #t
439 #:cargo-inputs
440 (("rust-anyhow" ,rust-anyhow-1.0)
441 ("rust-heck" ,rust-heck-0.3)
442 ("rust-itertools" ,rust-itertools-0.9)
443 ("rust-proc-macro-crate" ,rust-proc-macro-crate-0.1)
444 ("rust-proc-macro-error" ,rust-proc-macro-error-1)
445 ("rust-proc-macro2" ,rust-proc-macro2-1)
446 ("rust-quote" ,rust-quote-1)
447 ("rust-syn" ,rust-syn-1))))
448 (home-page "http://gtk-rs.org/")
449 (synopsis "Rust bindings for the GLib library, proc macros crate")
450 (description "Rust bindings for the GLib library, proc macros crate.")
451 (license license:expat)))
452
6920ffdd 453(define-public rust-glib-sys-0.10
a9c04753
EF
454 (package
455 (name "rust-glib-sys")
6920ffdd 456 (version "0.10.1")
a9c04753 457 (source
6920ffdd
NG
458 (origin
459 (method url-fetch)
460 (uri (crate-uri "glib-sys" version))
461 (file-name (string-append name "-" version ".tar.gz"))
462 (sha256
463 (base32 "1hfdwilf3dnrv3pnfbwmp3h2afgwvfsapcgjfg8276kflsbvksf7"))))
a9c04753
EF
464 (build-system cargo-build-system)
465 (arguments
6920ffdd 466 `(#:skip-build? #t
a9c04753
EF
467 #:cargo-inputs
468 (("rust-libc" ,rust-libc-0.2)
6920ffdd 469 ("rust-system-deps" ,rust-system-deps-1))
a9c04753
EF
470 #:cargo-development-inputs
471 (("rust-shell-words" ,rust-shell-words-0.1)
472 ("rust-tempfile" ,rust-tempfile-3))))
473 (inputs
474 `(("glib" ,glib)))
475 (home-page "http://gtk-rs.org/")
476 (synopsis "FFI bindings to libglib-2.0")
477 (description "This package provides FFI bindings to libglib-2.0.")
478 (license license:expat)))
479
6920ffdd
NG
480(define-public rust-glib-sys-0.9
481 (package
482 (inherit rust-glib-sys-0.10)
483 (name "rust-glib-sys")
484 (version "0.9.1")
485 (source
486 (origin
487 (method url-fetch)
488 (uri (crate-uri "glib-sys" version))
489 (file-name
490 (string-append name "-" version ".tar.gz"))
491 (sha256
492 (base32
493 "1qhnwfqqcp63mx4q9744rfkq78g6ky2j8ppsxxgw0ipl08w6z1cm"))))
494 (arguments
495 `(#:tests? #f ; Some test libraries not included in release.
496 #:cargo-inputs
497 (("rust-libc" ,rust-libc-0.2)
498 ("rust-pkg-config" ,rust-pkg-config-0.3))
499 #:cargo-development-inputs
500 (("rust-shell-words" ,rust-shell-words-0.1)
501 ("rust-tempfile" ,rust-tempfile-3))))))
502
e3d4fb70 503(define-public rust-gobject-sys-0.10
a9c04753
EF
504 (package
505 (name "rust-gobject-sys")
e3d4fb70 506 (version "0.10.0")
a9c04753 507 (source
e3d4fb70
NG
508 (origin
509 (method url-fetch)
510 (uri (crate-uri "gobject-sys" version))
511 (file-name (string-append name "-" version ".tar.gz"))
512 (sha256
513 (base32 "1311d3zbdhl1g7ibj1iy1650513yrhxbjxgfhazn52ii1jv368cm"))))
a9c04753
EF
514 (build-system cargo-build-system)
515 (arguments
e3d4fb70 516 `(#:skip-build? #t
a9c04753 517 #:cargo-inputs
e3d4fb70 518 (("rust-glib-sys" ,rust-glib-sys-0.10)
a9c04753 519 ("rust-libc" ,rust-libc-0.2)
e3d4fb70 520 ("rust-system-deps" ,rust-system-deps-1))
a9c04753
EF
521 #:cargo-development-inputs
522 (("rust-shell-words" ,rust-shell-words-0.1)
523 ("rust-tempfile" ,rust-tempfile-3))))
524 (inputs
525 `(("glib" ,glib)))
526 (home-page "http://gtk-rs.org/")
527 (synopsis "FFI bindings to libgobject-2.0")
528 (description "This package provides FFI bindings to libgobject-2.0.")
529 (license license:expat)))
530
e3d4fb70
NG
531(define-public rust-gobject-sys-0.9
532 (package
533 (inherit rust-gobject-sys-0.10)
534 (name "rust-gobject-sys")
535 (version "0.9.1")
536 (source
537 (origin
538 (method url-fetch)
539 (uri (crate-uri "gobject-sys" version))
540 (file-name
541 (string-append name "-" version ".tar.gz"))
542 (sha256
543 (base32 "1nakflbp3gjaas4fw7sn3p1p32khyfpcq1h06z7yqd10yq2ail9i"))))
544 (arguments
545 `(#:tests? #f ; Some test libraries not included in release.
546 #:cargo-inputs
547 (("rust-glib-sys" ,rust-glib-sys-0.9)
548 ("rust-libc" ,rust-libc-0.2)
549 ("rust-pkg-config" ,rust-pkg-config-0.3))
550 #:cargo-development-inputs
551 (("rust-shell-words" ,rust-shell-words-0.1)
552 ("rust-tempfile" ,rust-tempfile-3))))))
553
a9c04753
EF
554(define-public rust-gtk-rs-lgpl-docs-0.1
555 (package
556 (name "rust-gtk-rs-lgpl-docs")
530000b0 557 (version "0.1.18")
a9c04753 558 (source
530000b0
NG
559 (origin
560 (method url-fetch)
561 (uri (crate-uri "gtk-rs-lgpl-docs" version))
562 (file-name (string-append name "-" version ".tar.gz"))
563 (sha256
564 (base32 "0xm3lm15j8yfn2jzh3sz6hrq2g2k917ahnp5caxw9c7z8sgr9f4m"))))
a9c04753
EF
565 (build-system cargo-build-system)
566 (arguments
567 `(#:cargo-inputs
568 (("rust-rustdoc-stripper" ,rust-rustdoc-stripper-0.1))))
569 (home-page "https://gtk-rs.org/")
570 (synopsis "LGPL-licensed docs for Gtk-rs crates")
571 (description
572 "LGPL-licensed docs for Gtk-rs crates.")
573 (license license:lgpl2.0)))
574
575(define-public rust-pango-0.8
576 (package
577 (name "rust-pango")
578 (version "0.8.0")
579 (source
580 (origin
581 (method url-fetch)
582 (uri (crate-uri "pango" version))
583 (file-name
584 (string-append name "-" version ".tar.gz"))
585 (sha256
586 (base32
587 "0xq50950il3228grzs4xvc5s6phxcl5l50grz6syvs0vixr6p70y"))))
588 (build-system cargo-build-system)
589 (arguments
590 `(#:cargo-inputs
591 (("rust-bitflags" ,rust-bitflags-1)
592 ("rust-glib" ,rust-glib-0.9)
593 ("rust-glib-sys" ,rust-glib-sys-0.9)
594 ("rust-gobject-sys" ,rust-gobject-sys-0.9)
595 ("rust-lazy-static" ,rust-lazy-static-1)
596 ("rust-libc" ,rust-libc-0.2)
597 ("rust-pango-sys" ,rust-pango-sys-0.9)
598 ("rust-gtk-rs-lgpl-docs" ,rust-gtk-rs-lgpl-docs-0.1))
599 #:cargo-development-inputs
600 (("rust-gir-format-check" ,rust-gir-format-check-0.1))))
601 (inputs
602 `(("pango" ,pango)))
603 (home-page "https://gtk-rs.org/")
604 (synopsis "Rust bindings for the Pango library")
605 (description
606 "Rust bindings for the Pango library.")
607 (license license:expat)))
608
609(define-public rust-pango-0.7
610 (package
611 (inherit rust-pango-0.8)
612 (name "rust-pango")
613 (version "0.7.0")
614 (source
615 (origin
616 (method url-fetch)
617 (uri (crate-uri "pango" version))
618 (file-name
619 (string-append name "-" version ".tar.gz"))
620 (sha256
621 (base32
622 "11np7nxb69g3kid2l78b7k519x1wk1c3f9yy7swgzy24n5qs0grr"))))
623 (arguments
624 `(#:cargo-inputs
625 (("rust-bitflags" ,rust-bitflags-1)
626 ("rust-glib" ,rust-glib-0.8)
627 ("rust-glib-sys" ,rust-glib-sys-0.9)
628 ("rust-gobject-sys" ,rust-gobject-sys-0.9)
629 ("rust-lazy-static" ,rust-lazy-static-1)
630 ("rust-libc" ,rust-libc-0.2)
631 ("rust-pango-sys" ,rust-pango-sys-0.9)
632 ("rust-gtk-rs-lgpl-docs" ,rust-gtk-rs-lgpl-docs-0.1))
633 #:cargo-development-inputs
634 (("rust-gir-format-check" ,rust-gir-format-check-0.1))))))
635
eb6d797e
NG
636(define-public rust-pango-sys-0.10
637 (package
638 (name "rust-pango-sys")
639 (version "0.10.0")
640 (source
641 (origin
642 (method url-fetch)
643 (uri (crate-uri "pango-sys" version))
644 (file-name (string-append name "-" version ".tar.gz"))
645 (sha256
646 (base32 "1468xzyk2wanxb2b32fsmwk6bnafdaicxl5b4301dlb2ic66bli4"))))
647 (build-system cargo-build-system)
648 (arguments
649 `(#:skip-build? #t
650 #:cargo-inputs
651 (("rust-glib-sys" ,rust-glib-sys-0.10)
652 ("rust-gobject-sys" ,rust-gobject-sys-0.10)
653 ("rust-libc" ,rust-libc-0.2)
654 ("rust-system-deps" ,rust-system-deps-1))))
655 (inputs
656 `(("pango" ,pango)))
657 (home-page "http://gtk-rs.org/")
658 (synopsis "FFI bindings to libpango-1.0")
659 (description "This package provides FFI bindings to @code{libpango-1.0}.")
660 (license license:expat)))
661
a9c04753
EF
662(define-public rust-pango-sys-0.9
663 (package
eb6d797e 664 (inherit rust-pango-sys-0.10)
a9c04753
EF
665 (name "rust-pango-sys")
666 (version "0.9.1")
667 (source
eb6d797e
NG
668 (origin
669 (method url-fetch)
670 (uri (crate-uri "pango-sys" version))
671 (file-name (string-append name "-" version ".tar.gz"))
672 (sha256
673 (base32 "0zdynikh6jrfa31fpmbrwnz46a57idci73zzkf0z0g3vj223vfc6"))))
a9c04753 674 (arguments
eb6d797e 675 `(#:tests? #f ; Some test files not included in release.
a9c04753
EF
676 #:cargo-inputs
677 (("rust-glib-sys" ,rust-glib-sys-0.9)
678 ("rust-gobject-sys" ,rust-gobject-sys-0.9)
679 ("rust-libc" ,rust-libc-0.2)
680 ("rust-pkg-config" ,rust-pkg-config-0.3))
681 #:cargo-development-inputs
682 (("rust-shell-words" ,rust-shell-words-0.1)
eb6d797e 683 ("rust-tempfile" ,rust-tempfile-3))))))
a9c04753
EF
684
685(define-public rust-pangocairo-0.9
686 (package
687 (name "rust-pangocairo")
688 (version "0.9.0")
689 (source
690 (origin
691 (method url-fetch)
692 (uri (crate-uri "pangocairo" version))
693 (file-name
694 (string-append name "-" version ".tar.gz"))
695 (sha256
696 (base32
697 "0bap3h78hdqdyln58349qjjbcv45m8a0a16c4n9fprdj1my0gldx"))))
698 (build-system cargo-build-system)
699 (arguments
700 `(#:cargo-inputs
701 (("rust-bitflags" ,rust-bitflags-1)
702 ("rust-cairo-rs" ,rust-cairo-rs-0.8)
703 ("rust-cairo-sys-rs" ,rust-cairo-sys-rs-0.9)
704 ("rust-glib" ,rust-glib-0.9)
705 ("rust-glib-sys" ,rust-glib-sys-0.9)
706 ("rust-gobject-sys" ,rust-gobject-sys-0.9)
707 ("rust-libc" ,rust-libc-0.2)
708 ("rust-pango" ,rust-pango-0.8)
709 ("rust-pango-sys" ,rust-pango-sys-0.9)
710 ("rust-pangocairo-sys" ,rust-pangocairo-sys-0.10)
711 ("rust-gtk-rs-lgpl-docs" ,rust-gtk-rs-lgpl-docs-0.1))
712 #:cargo-development-inputs
713 (("rust-gir-format-check" ,rust-gir-format-check-0.1))))
714 (inputs
715 `(("gtk+" ,gtk+)))
716 (home-page "http://gtk-rs.org/")
717 (synopsis "Rust bindings for the PangoCairo library")
718 (description
719 "Rust bindings for the PangoCairo library.")
720 (license license:expat)))
721
722(define-public rust-pangocairo-0.8
723 (package
724 (inherit rust-pangocairo-0.9)
725 (name "rust-pangocairo")
726 (version "0.8.0")
727 (source
728 (origin
729 (method url-fetch)
730 (uri (crate-uri "pangocairo" version))
731 (file-name
732 (string-append name "-" version ".tar.gz"))
733 (sha256
734 (base32
735 "0qjiwsp73x3w0493dzycyjzxnzwq7ixwmf1ccr5r41pjhxbnk1kl"))))
736 (arguments
737 `(#:cargo-inputs
738 (("rust-bitflags" ,rust-bitflags-1)
739 ("rust-cairo-rs" ,rust-cairo-rs-0.7)
740 ("rust-cairo-sys-rs" ,rust-cairo-sys-rs-0.9)
741 ("rust-glib" ,rust-glib-0.8)
742 ("rust-glib-sys" ,rust-glib-sys-0.9)
743 ("rust-gobject-sys" ,rust-gobject-sys-0.9)
744 ("rust-libc" ,rust-libc-0.2)
745 ("rust-pango" ,rust-pango-0.7)
746 ("rust-pango-sys" ,rust-pango-sys-0.9)
747 ("rust-pangocairo-sys" ,rust-pangocairo-sys-0.10)
748 ("rust-gtk-rs-lgpl-docs" ,rust-gtk-rs-lgpl-docs-0.1))
749 #:cargo-development-inputs
750 (("rust-gir-format-check" ,rust-gir-format-check-0.1))))))
751
752(define-public rust-pangocairo-sys-0.10
753 (package
754 (name "rust-pangocairo-sys")
755 (version "0.10.1")
756 (source
757 (origin
758 (method url-fetch)
759 (uri (crate-uri "pangocairo-sys" version))
760 (file-name
761 (string-append name "-" version ".tar.gz"))
762 (sha256
763 (base32
764 "1zlyf5vajarnxg5034b8qa5w5zajv96lfvlgiki26svpmcqip4m3"))))
765 (build-system cargo-build-system)
766 (arguments
767 `(#:cargo-inputs
768 (("rust-cairo-sys-rs" ,rust-cairo-sys-rs-0.9)
769 ("rust-glib-sys" ,rust-glib-sys-0.9)
770 ("rust-libc" ,rust-libc-0.2)
771 ("rust-pango-sys" ,rust-pango-sys-0.9)
772 ("rust-pkg-config" ,rust-pkg-config-0.3))
773 #:cargo-development-inputs
774 (("rust-shell-words" ,rust-shell-words-0.1)
775 ("rust-tempfile" ,rust-tempfile-3))))
776 (inputs
777 `(("gtk+" ,gtk+)))
778 (home-page "https://gtk-rs.org/")
779 (synopsis "FFI bindings to libgtk-3")
780 (description "This package provides FFI bindings to libgtk-3.")
781 (license license:expat)))