crates-gtk.scm 42 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226
  1. ;;; GNU Guix --- Functional package management for GNU
  2. ;;; Copyright © 2020, 2021 Efraim Flashner <efraim@flashner.co.il>
  3. ;;; Copyright © 2020, 2021 Nicolas Goaziou <mail@nicolasgoaziou.fr>
  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. (define-module (gnu packages crates-gtk)
  20. #:use-module (guix build-system cargo)
  21. #:use-module (guix download)
  22. #:use-module ((guix licenses) #:prefix license:)
  23. #:use-module (guix packages)
  24. #:use-module (gnu packages)
  25. #:use-module (gnu packages crates-io)
  26. #:use-module (gnu packages crates-graphics)
  27. #:use-module (gnu packages glib)
  28. #:use-module (gnu packages gtk))
  29. ;;;
  30. ;;; Please: Try to add new module packages in alphabetic order.
  31. ;;;
  32. (define-public rust-atk-sys-0.9
  33. (package
  34. (name "rust-atk-sys")
  35. (version "0.9.1")
  36. (source
  37. (origin
  38. (method url-fetch)
  39. (uri (crate-uri "atk-sys" version))
  40. (file-name (string-append name "-" version ".tar.gz"))
  41. (sha256
  42. (base32 "0vzcm1inhax78bcsbapr6mrp4z7lk783csyh200wi91pcxvw2lp5"))))
  43. (build-system cargo-build-system)
  44. (arguments
  45. `(#:tests? #f ;missing files
  46. #:cargo-inputs
  47. (("rust-glib-sys" ,rust-glib-sys-0.9)
  48. ("rust-gobject-sys" ,rust-gobject-sys-0.9)
  49. ("rust-libc" ,rust-libc-0.2)
  50. ("rust-pkg-config" ,rust-pkg-config-0.3))
  51. #:cargo-development-inputs
  52. (("rust-shell-words" ,rust-shell-words-0.1)
  53. ("rust-tempfile" ,rust-tempfile-3))))
  54. (inputs
  55. `(("atk" ,atk)
  56. ("glib" ,glib)))
  57. (home-page "https://gtk-rs.org/")
  58. (synopsis "FFI bindings to libatk-1")
  59. (description "FFI bindings to libatk-1")
  60. (license license:expat)))
  61. (define-public rust-atk-0.8
  62. (package
  63. (name "rust-atk")
  64. (version "0.8.0")
  65. (source
  66. (origin
  67. (method url-fetch)
  68. (uri (crate-uri "atk" version))
  69. (file-name (string-append name "-" version ".tar.gz"))
  70. (sha256
  71. (base32 "0gk6ijqsd6kh8cki1wznw570499psbppg3d5bqaayagjapxawka4"))))
  72. (build-system cargo-build-system)
  73. (arguments
  74. `(#:cargo-inputs
  75. (("rust-atk-sys" ,rust-atk-sys-0.9)
  76. ("rust-bitflags" ,rust-bitflags-1)
  77. ("rust-glib" ,rust-glib-0.9)
  78. ("rust-glib-sys" ,rust-glib-sys-0.9)
  79. ("rust-gobject-sys" ,rust-gobject-sys-0.9)
  80. ("rust-gtk-rs-lgpl-docs" ,rust-gtk-rs-lgpl-docs-0.1)
  81. ("rust-libc" ,rust-libc-0.2))
  82. #:cargo-development-inputs
  83. (("rust-gir-format-check" ,rust-gir-format-check-0.1))))
  84. (inputs
  85. `(("atk" ,atk)
  86. ("glib" ,glib)))
  87. (home-page "https://gtk-rs.org/")
  88. (synopsis "Rust bindings for the ATK library")
  89. (description "Rust bindings for the ATK library")
  90. (license license:expat)))
  91. (define-public rust-cairo-rs-0.9
  92. (package
  93. (name "rust-cairo-rs")
  94. (version "0.9.1")
  95. (source
  96. (origin
  97. (method url-fetch)
  98. (uri (crate-uri "cairo-rs" version))
  99. (file-name (string-append name "-" version ".tar.gz"))
  100. (sha256
  101. (base32 "1f5x6ipfpzz0ffph0pg0xfkdfcbr0jp59714zz857jp88zhg5h65"))))
  102. (build-system cargo-build-system)
  103. (arguments
  104. `(#:skip-build? #t
  105. #:cargo-inputs
  106. (("rust-bitflags" ,rust-bitflags-1)
  107. ("rust-cairo-sys-rs" ,rust-cairo-sys-rs-0.10)
  108. ("rust-glib" ,rust-glib-0.10)
  109. ("rust-glib-sys" ,rust-glib-sys-0.10)
  110. ("rust-gobject-sys" ,rust-gobject-sys-0.10)
  111. ("rust-gtk-rs-lgpl-docs" ,rust-gtk-rs-lgpl-docs-0.1)
  112. ("rust-libc" ,rust-libc-0.2)
  113. ("rust-thiserror" ,rust-thiserror-1))
  114. #:cargo-development-inputs
  115. (("rust-tempfile" ,rust-tempfile-3))))
  116. (inputs
  117. `(("cairo" ,cairo)))
  118. (home-page "https://gtk-rs.org/")
  119. (synopsis "Rust bindings for the Cairo library")
  120. (description "Rust bindings for the Cairo library")
  121. (license license:expat)))
  122. (define-public rust-cairo-rs-0.8
  123. (package
  124. (inherit rust-cairo-rs-0.9)
  125. (name "rust-cairo-rs")
  126. (version "0.8.1")
  127. (source
  128. (origin
  129. (method url-fetch)
  130. (uri (crate-uri "cairo-rs" version))
  131. (file-name
  132. (string-append name "-" version ".tar.gz"))
  133. (sha256
  134. (base32
  135. "11303v1fv6hsc9n70ak380gknkf0098phpcxqdhkmahqjsx4jw0m"))))
  136. (arguments
  137. `(#:cargo-inputs
  138. (("rust-bitflags" ,rust-bitflags-1)
  139. ("rust-cairo-sys-rs" ,rust-cairo-sys-rs-0.9)
  140. ("rust-glib" ,rust-glib-0.9)
  141. ("rust-glib-sys" ,rust-glib-sys-0.9)
  142. ("rust-gobject-sys" ,rust-gobject-sys-0.9)
  143. ("rust-libc" ,rust-libc-0.2))
  144. #:cargo-development-inputs
  145. (("rust-gtk-rs-lgpl-docs" ,rust-gtk-rs-lgpl-docs-0.1)
  146. ("rust-tempfile" ,rust-tempfile-3))))))
  147. (define-public rust-cairo-rs-0.7
  148. (package
  149. (inherit rust-cairo-rs-0.8)
  150. (name "rust-cairo-rs")
  151. (version "0.7.1")
  152. (source
  153. (origin
  154. (method url-fetch)
  155. (uri (crate-uri "cairo-rs" version))
  156. (file-name
  157. (string-append name "-" version ".tar.gz"))
  158. (sha256
  159. (base32
  160. "171m98g41avp5mmshqir4ka21napp7ma5fx45wi9mw5hwdyv8pg0"))))
  161. (arguments
  162. `(#:cargo-inputs
  163. (("rust-bitflags" ,rust-bitflags-1)
  164. ("rust-cairo-sys-rs" ,rust-cairo-sys-rs-0.9)
  165. ("rust-glib" ,rust-glib-0.8)
  166. ("rust-glib-sys" ,rust-glib-sys-0.9)
  167. ("rust-gobject-sys" ,rust-gobject-sys-0.9)
  168. ("rust-libc" ,rust-libc-0.2)
  169. ("rust-gtk-rs-lgpl-docs" ,rust-gtk-rs-lgpl-docs-0.1))
  170. #:cargo-development-inputs
  171. (("rust-tempfile" ,rust-tempfile-3))))))
  172. (define-public rust-cairo-sys-rs-0.10
  173. (package
  174. (name "rust-cairo-sys-rs")
  175. (version "0.10.0")
  176. (source
  177. (origin
  178. (method url-fetch)
  179. (uri (crate-uri "cairo-sys-rs" version))
  180. (file-name (string-append name "-" version ".tar.gz"))
  181. (sha256
  182. (base32 "19wch8zc11hbi724mn16hhqyff8kw5c5bsbdlzpxdwfmkadn7lif"))))
  183. (build-system cargo-build-system)
  184. (arguments
  185. `(#:skip-build? #t
  186. #:cargo-inputs
  187. (("rust-glib-sys" ,rust-glib-sys-0.10)
  188. ("rust-libc" ,rust-libc-0.2)
  189. ("rust-system-deps" ,rust-system-deps-1)
  190. ("rust-winapi" ,rust-winapi-0.3)
  191. ("rust-x11" ,rust-x11-2))))
  192. (inputs
  193. `(("cairo" ,cairo)))
  194. (home-page "https://gtk-rs.org/")
  195. (synopsis "FFI bindings to libcairo")
  196. (description "This package provides FFI bindings to libcairo.")
  197. (license license:expat)))
  198. (define-public rust-cairo-sys-rs-0.9
  199. (package
  200. (inherit rust-cairo-sys-rs-0.10)
  201. (name "rust-cairo-sys-rs")
  202. (version "0.9.2")
  203. (source
  204. (origin
  205. (method url-fetch)
  206. (uri (crate-uri "cairo-sys-rs" version))
  207. (file-name (string-append name "-" version ".tar.gz"))
  208. (sha256
  209. (base32 "0qsdy6s57yvscg2rfm7wdqrlhzbn1aq9lhk3dy1vw5f7r81blrgz"))))
  210. (arguments
  211. `(#:cargo-inputs
  212. (("rust-glib-sys" ,rust-glib-sys-0.9)
  213. ("rust-libc" ,rust-libc-0.2)
  214. ("rust-winapi" ,rust-winapi-0.3)
  215. ("rust-x11" ,rust-x11-2)
  216. ("rust-pkg-config" ,rust-pkg-config-0.3))))))
  217. (define-public rust-gdk-0.13
  218. (package
  219. (name "rust-gdk")
  220. (version "0.13.2")
  221. (source
  222. (origin
  223. (method url-fetch)
  224. (uri (crate-uri "gdk" version))
  225. (file-name (string-append name "-" version ".tar.gz"))
  226. (sha256
  227. (base32 "0zbb9bwg2z9vlcjj9b59qch3mfmszsrxya7syc5a39v85adq606v"))))
  228. (build-system cargo-build-system)
  229. (arguments
  230. `(#:skip-build? #t
  231. #:cargo-inputs
  232. (("rust-bitflags" ,rust-bitflags-1)
  233. ("rust-cairo-rs" ,rust-cairo-rs-0.9)
  234. ("rust-cairo-sys-rs" ,rust-cairo-sys-rs-0.10)
  235. ("rust-gdk-pixbuf" ,rust-gdk-pixbuf-0.9)
  236. ("rust-gdk-sys" ,rust-gdk-sys-0.10)
  237. ("rust-gio" ,rust-gio-0.9)
  238. ("rust-gio-sys" ,rust-gio-sys-0.10)
  239. ("rust-glib" ,rust-glib-0.10)
  240. ("rust-glib-sys" ,rust-glib-sys-0.10)
  241. ("rust-gobject-sys" ,rust-gobject-sys-0.10)
  242. ("rust-gtk-rs-lgpl-docs" ,rust-gtk-rs-lgpl-docs-0.1)
  243. ("rust-libc" ,rust-libc-0.2)
  244. ("rust-pango" ,rust-pango-0.9))
  245. #:cargo-development-inputs
  246. (("rust-gir-format-check" ,rust-gir-format-check-0.1))))
  247. (inputs
  248. `(("cairo" ,cairo)
  249. ("gdk-pixbuf" ,gdk-pixbuf)
  250. ("glib" ,glib)
  251. ("gtk+" ,gtk+)
  252. ("pango" ,pango)))
  253. (home-page "https://gtk-rs.org/")
  254. (synopsis "Rust bindings for the GDK 3 library")
  255. (description "This package provides Rust bindings for the GDK 3 library.")
  256. (license license:expat)))
  257. (define-public rust-gdk-0.12
  258. (package
  259. (inherit rust-gdk-0.13)
  260. (name "rust-gdk")
  261. (version "0.12.1")
  262. (source
  263. (origin
  264. (method url-fetch)
  265. (uri (crate-uri "gdk" version))
  266. (file-name (string-append name "-" version ".tar.gz"))
  267. (sha256
  268. (base32 "12bmk9vfpk7f03fx22cq9ps00xylsxcpmp8c8r95r1n05xvyirgv"))))
  269. (arguments
  270. `(#:cargo-inputs
  271. (("rust-bitflags" ,rust-bitflags-1)
  272. ("rust-cairo-rs" ,rust-cairo-rs-0.8)
  273. ("rust-cairo-sys-rs" ,rust-cairo-sys-rs-0.9)
  274. ("rust-gdk-pixbuf" ,rust-gdk-pixbuf-0.8)
  275. ("rust-gdk-sys" ,rust-gdk-sys-0.9)
  276. ("rust-gio" ,rust-gio-0.8)
  277. ("rust-gio-sys" ,rust-gio-sys-0.9)
  278. ("rust-glib" ,rust-glib-0.9)
  279. ("rust-glib-sys" ,rust-glib-sys-0.9)
  280. ("rust-gobject-sys" ,rust-gobject-sys-0.9)
  281. ("rust-gtk-rs-lgpl-docs" ,rust-gtk-rs-lgpl-docs-0.1)
  282. ("rust-libc" ,rust-libc-0.2)
  283. ("rust-pango" ,rust-pango-0.8))
  284. #:cargo-development-inputs
  285. (("rust-gir-format-check" ,rust-gir-format-check-0.1))))))
  286. (define-public rust-gdk-pixbuf-0.9
  287. (package
  288. (name "rust-gdk-pixbuf")
  289. (version "0.9.0")
  290. (source
  291. (origin
  292. (method url-fetch)
  293. (uri (crate-uri "gdk-pixbuf" version))
  294. (file-name (string-append name "-" version ".tar.gz"))
  295. (sha256
  296. (base32 "12lrk7zwshid8dgx9vg87bk0h4a0ilpi7w48idsrpm4xp4yawvcg"))))
  297. (build-system cargo-build-system)
  298. (arguments
  299. `(#:skip-build? #t
  300. #:cargo-inputs
  301. (("rust-gdk-pixbuf-sys" ,rust-gdk-pixbuf-sys-0.10)
  302. ("rust-gio" ,rust-gio-0.9)
  303. ("rust-gio-sys" ,rust-gio-sys-0.10)
  304. ("rust-glib" ,rust-glib-0.10)
  305. ("rust-glib-sys" ,rust-glib-sys-0.10)
  306. ("rust-gobject-sys" ,rust-gobject-sys-0.10)
  307. ("rust-gtk-rs-lgpl-docs" ,rust-gtk-rs-lgpl-docs-0.1)
  308. ("rust-libc" ,rust-libc-0.2))
  309. #:cargo-development-inputs
  310. (("rust-gir-format-check" ,rust-gir-format-check-0.1))))
  311. (inputs
  312. `(("gdk-pixbuf" ,gdk-pixbuf)))
  313. (home-page "https://gtk-rs.org/")
  314. (synopsis "Rust bindings for the GdkPixbuf library")
  315. (description "Rust bindings for the GdkPixbuf library")
  316. (license license:expat)))
  317. (define-public rust-gdk-pixbuf-0.8
  318. (package
  319. (inherit rust-gdk-pixbuf-0.9)
  320. (name "rust-gdk-pixbuf")
  321. (version "0.8.0")
  322. (source
  323. (origin
  324. (method url-fetch)
  325. (uri (crate-uri "gdk-pixbuf" version))
  326. (file-name (string-append name "-" version ".tar.gz"))
  327. (sha256
  328. (base32 "1mxxca0fkcw2rsd3kl3nvlb8ys4cgxqx4n5isjbv0adk8q624j72"))))
  329. (arguments
  330. `(#:cargo-inputs
  331. (("rust-gdk-pixbuf-sys" ,rust-gdk-pixbuf-sys-0.9)
  332. ("rust-gio" ,rust-gio-0.8)
  333. ("rust-gio-sys" ,rust-gio-sys-0.9)
  334. ("rust-glib" ,rust-glib-0.9)
  335. ("rust-glib-sys" ,rust-glib-sys-0.9)
  336. ("rust-gobject-sys" ,rust-gobject-sys-0.9)
  337. ("rust-libc" ,rust-libc-0.2)
  338. ("rust-gtk-rs-lgpl-docs" ,rust-gtk-rs-lgpl-docs-0.1))
  339. #:cargo-development-inputs
  340. (("rust-gir-format-check" ,rust-gir-format-check-0.1))))))
  341. (define-public rust-gdk-pixbuf-0.7
  342. (package
  343. (inherit rust-gdk-pixbuf-0.8)
  344. (name "rust-gdk-pixbuf")
  345. (version "0.7.0")
  346. (source
  347. (origin
  348. (method url-fetch)
  349. (uri (crate-uri "gdk-pixbuf" version))
  350. (file-name
  351. (string-append name "-" version ".tar.gz"))
  352. (sha256
  353. (base32
  354. "1k2g3w2p57m68bi5sldvkmgjgslgqswrjsijjhqaibdvw67409lp"))))
  355. (arguments
  356. `(#:cargo-inputs
  357. (("rust-fragile" ,rust-fragile-0.3)
  358. ("rust-futures-preview" ,rust-futures-preview-0.3)
  359. ("rust-gdk-pixbuf-sys" ,rust-gdk-pixbuf-sys-0.9)
  360. ("rust-gio" ,rust-gio-0.7)
  361. ("rust-gio-sys" ,rust-gio-sys-0.9)
  362. ("rust-glib" ,rust-glib-0.8)
  363. ("rust-glib-sys" ,rust-glib-sys-0.9)
  364. ("rust-gobject-sys" ,rust-gobject-sys-0.9)
  365. ("rust-libc" ,rust-libc-0.2)
  366. ("rust-gtk-rs-lgpl-docs" ,rust-gtk-rs-lgpl-docs-0.1))
  367. #:cargo-development-inputs
  368. (("rust-gir-format-check" ,rust-gir-format-check-0.1))))))
  369. (define-public rust-gdk-pixbuf-sys-0.10
  370. (package
  371. (name "rust-gdk-pixbuf-sys")
  372. (version "0.10.0")
  373. (source
  374. (origin
  375. (method url-fetch)
  376. (uri (crate-uri "gdk-pixbuf-sys" version))
  377. (file-name (string-append name "-" version ".tar.gz"))
  378. (sha256
  379. (base32 "13qyxazj9bmw3llvkh6br8v7sypnbin2nxis366ppsa3gy54dziv"))))
  380. (build-system cargo-build-system)
  381. (arguments
  382. `(#:skip-build? #t
  383. #:cargo-inputs
  384. (("rust-gio-sys" ,rust-gio-sys-0.10)
  385. ("rust-glib-sys" ,rust-glib-sys-0.10)
  386. ("rust-gobject-sys" ,rust-gobject-sys-0.10)
  387. ("rust-libc" ,rust-libc-0.2)
  388. ("rust-system-deps" ,rust-system-deps-1))
  389. #:cargo-development-inputs
  390. (("rust-shell-words" ,rust-shell-words-0.1)
  391. ("rust-tempfile" ,rust-tempfile-3))))
  392. (inputs
  393. `(("gdk-pixbuf" ,gdk-pixbuf)))
  394. (home-page "https://gtk-rs.org/")
  395. (synopsis "FFI bindings to libgdk_pixbuf-2.0")
  396. (description "This package provides FFI bindings to @code{libgdk_pixbuf-2.0}.")
  397. (license license:expat)))
  398. (define-public rust-gdk-pixbuf-sys-0.9
  399. (package
  400. (inherit rust-gdk-pixbuf-sys-0.10)
  401. (name "rust-gdk-pixbuf-sys")
  402. (version "0.9.1")
  403. (source
  404. (origin
  405. (method url-fetch)
  406. (uri (crate-uri "gdk-pixbuf-sys" version))
  407. (file-name (string-append name "-" version ".tar.gz"))
  408. (sha256
  409. (base32 "1c2andpjb10y7bahh6nxnksh9m3g5qh4mgq9znx634cy1831p6fq"))))
  410. (arguments
  411. `(#:tests? #f ; tests not included in release
  412. #:cargo-inputs
  413. (("rust-gio-sys" ,rust-gio-sys-0.9)
  414. ("rust-glib-sys" ,rust-glib-sys-0.9)
  415. ("rust-gobject-sys" ,rust-gobject-sys-0.9)
  416. ("rust-libc" ,rust-libc-0.2)
  417. ("rust-pkg-config" ,rust-pkg-config-0.3))
  418. #:cargo-development-inputs
  419. (("rust-shell-words" ,rust-shell-words-0.1)
  420. ("rust-tempfile" ,rust-tempfile-3))))))
  421. (define-public rust-gdk-sys-0.10
  422. (package
  423. (name "rust-gdk-sys")
  424. (version "0.10.0")
  425. (source
  426. (origin
  427. (method url-fetch)
  428. (uri (crate-uri "gdk-sys" version))
  429. (file-name (string-append name "-" version ".tar.gz"))
  430. (sha256
  431. (base32 "0s8d2jymffbv2kpwrx53krf7mpy3vdfhbb5i2n02dz80qp7m75ha"))))
  432. (build-system cargo-build-system)
  433. (arguments
  434. `(#:skip-build? #t
  435. #:cargo-inputs
  436. (("rust-cairo-sys-rs" ,rust-cairo-sys-rs-0.10)
  437. ("rust-gdk-pixbuf-sys" ,rust-gdk-pixbuf-sys-0.10)
  438. ("rust-gio-sys" ,rust-gio-sys-0.10)
  439. ("rust-glib-sys" ,rust-glib-sys-0.10)
  440. ("rust-gobject-sys" ,rust-gobject-sys-0.10)
  441. ("rust-libc" ,rust-libc-0.2)
  442. ("rust-pango-sys" ,rust-pango-sys-0.10)
  443. ("rust-pkg-config" ,rust-pkg-config-0.3)
  444. ("rust-system-deps" ,rust-system-deps-1))
  445. #:cargo-development-inputs
  446. (("rust-shell-words" ,rust-shell-words-0.1)
  447. ("rust-tempfile" ,rust-tempfile-3))))
  448. (inputs
  449. `(("cairo" ,cairo)
  450. ("gdk-pixbuf" ,gdk-pixbuf)
  451. ("gtk+" ,gtk+)
  452. ("glib" ,glib)
  453. ("pango" ,pango)))
  454. (home-page "https://gtk-rs.org/")
  455. (synopsis "FFI bindings to libgdk-3")
  456. (description "FFI bindings to libgdk-3")
  457. (license license:expat)))
  458. (define-public rust-gdk-sys-0.9
  459. (package
  460. (inherit rust-gdk-sys-0.10)
  461. (name "rust-gdk-sys")
  462. (version "0.9.1")
  463. (source
  464. (origin
  465. (method url-fetch)
  466. (uri (crate-uri "gdk-sys" version))
  467. (file-name (string-append name "-" version ".tar.gz"))
  468. (sha256
  469. (base32 "1fwgr1b3n0khlkhdq9145m6baz9y8207ya30d30g1gyij6g6gpva"))))
  470. (arguments
  471. `(#:tests? #f
  472. #:cargo-inputs
  473. (("rust-cairo-sys-rs" ,rust-cairo-sys-rs-0.9)
  474. ("rust-gdk-pixbuf-sys" ,rust-gdk-pixbuf-sys-0.9)
  475. ("rust-gio-sys" ,rust-gio-sys-0.9)
  476. ("rust-glib-sys" ,rust-glib-sys-0.9)
  477. ("rust-gobject-sys" ,rust-gobject-sys-0.9)
  478. ("rust-libc" ,rust-libc-0.2)
  479. ("rust-pango-sys" ,rust-pango-sys-0.9)
  480. ("rust-pkg-config" ,rust-pkg-config-0.3))
  481. #:cargo-development-inputs
  482. (("rust-shell-words" ,rust-shell-words-0.1)
  483. ("rust-tempfile" ,rust-tempfile-3))))))
  484. (define-public rust-gio-0.9
  485. (package
  486. (name "rust-gio")
  487. (version "0.9.1")
  488. (source
  489. (origin
  490. (method url-fetch)
  491. (uri (crate-uri "gio" version))
  492. (file-name (string-append name "-" version ".tar.gz"))
  493. (sha256
  494. (base32 "0qc5aqi2ijval5i9df0qryy4wbmayyhy7ng5v9r0fw7zpx105dhz"))))
  495. (build-system cargo-build-system)
  496. (arguments
  497. `(#:skip-build? #t
  498. #:cargo-inputs
  499. (("rust-bitflags" ,rust-bitflags-1)
  500. ("rust-futures" ,rust-futures-0.3)
  501. ("rust-futures-channel" ,rust-futures-channel-0.3)
  502. ("rust-futures-core" ,rust-futures-core-0.3)
  503. ("rust-futures-io" ,rust-futures-io-0.3)
  504. ("rust-futures-util" ,rust-futures-util-0.3)
  505. ("rust-gio-sys" ,rust-gio-sys-0.10)
  506. ("rust-glib" ,rust-glib-0.10)
  507. ("rust-glib-sys" ,rust-glib-sys-0.10)
  508. ("rust-gobject-sys" ,rust-gobject-sys-0.10)
  509. ("rust-gtk-rs-lgpl-docs" ,rust-gtk-rs-lgpl-docs-0.1)
  510. ("rust-libc" ,rust-libc-0.2)
  511. ("rust-once-cell" ,rust-once-cell-1)
  512. ("rust-thiserror" ,rust-thiserror-1))
  513. #:cargo-development-inputs
  514. (("rust-gir-format-check" ,rust-gir-format-check-0.1)
  515. ("rust-serial-test" ,rust-serial-test-0.4))))
  516. (inputs
  517. `(("glib" ,glib)))
  518. (home-page "https://gtk-rs.org/")
  519. (synopsis "Rust bindings for the Gio library")
  520. (description "Rust bindings for the Gio library")
  521. (license license:expat)))
  522. (define-public rust-gio-0.8
  523. (package
  524. (inherit rust-gio-0.9)
  525. (name "rust-gio")
  526. (version "0.8.1")
  527. (source
  528. (origin
  529. (method url-fetch)
  530. (uri (crate-uri "gio" version))
  531. (file-name (string-append name "-" version ".tar.gz"))
  532. (sha256
  533. (base32 "19cnla2ya0mi6wwaabd5mxbq2kzq46dg6jq2z19rpqyc2na0zl8c"))))
  534. (arguments
  535. `(#:tests? #f ; Not all files included in the tarball.
  536. #:cargo-inputs
  537. (("rust-bitflags" ,rust-bitflags-1)
  538. ("rust-futures-channel" ,rust-futures-channel-0.3)
  539. ("rust-futures-core" ,rust-futures-core-0.3)
  540. ("rust-futures-io" ,rust-futures-io-0.3)
  541. ("rust-futures-util" ,rust-futures-util-0.3)
  542. ("rust-gio-sys" ,rust-gio-sys-0.9)
  543. ("rust-glib" ,rust-glib-0.9)
  544. ("rust-glib-sys" ,rust-glib-sys-0.9)
  545. ("rust-gobject-sys" ,rust-gobject-sys-0.9)
  546. ("rust-lazy-static" ,rust-lazy-static-1)
  547. ("rust-libc" ,rust-libc-0.2)
  548. ("rust-gtk-rs-lgpl-docs" ,rust-gtk-rs-lgpl-docs-0.1))
  549. #:cargo-development-inputs
  550. (("rust-gir-format-check" ,rust-gir-format-check-0.1)
  551. ("rust-serial-test" ,rust-serial-test-0.1)
  552. ("rust-serial-test-derive" ,rust-serial-test-derive-0.1))))))
  553. (define-public rust-gio-0.7
  554. (package
  555. (inherit rust-gio-0.8)
  556. (name "rust-gio")
  557. (version "0.7.0")
  558. (source
  559. (origin
  560. (method url-fetch)
  561. (uri (crate-uri "gio" version))
  562. (file-name
  563. (string-append name "-" version ".tar.gz"))
  564. (sha256
  565. (base32
  566. "1qv0wc1hqyb81c03h81s3xrl9jslrw23fr4yhygxbhih9k9vaqb2"))))
  567. (arguments
  568. `(#:cargo-inputs
  569. (("rust-bitflags" ,rust-bitflags-1)
  570. ("rust-fragile" ,rust-fragile-0.3)
  571. ("rust-futures-preview" ,rust-futures-preview-0.3)
  572. ("rust-gio-sys" ,rust-gio-sys-0.9)
  573. ("rust-glib" ,rust-glib-0.8)
  574. ("rust-glib-sys" ,rust-glib-sys-0.9)
  575. ("rust-gobject-sys" ,rust-gobject-sys-0.9)
  576. ("rust-lazy-static" ,rust-lazy-static-1)
  577. ("rust-libc" ,rust-libc-0.2)
  578. ("rust-gtk-rs-lgpl-docs" ,rust-gtk-rs-lgpl-docs-0.1))
  579. #:cargo-development-inputs
  580. (("rust-gir-format-check" ,rust-gir-format-check-0.1))))))
  581. (define-public rust-gio-sys-0.10
  582. (package
  583. (name "rust-gio-sys")
  584. (version "0.10.1")
  585. (source
  586. (origin
  587. (method url-fetch)
  588. (uri (crate-uri "gio-sys" version))
  589. (file-name (string-append name "-" version ".tar.gz"))
  590. (sha256
  591. (base32 "1b2f6jvghm2djymj3qrgbqfci2f95gyhdin2pgv2qpcg5xszn92y"))))
  592. (build-system cargo-build-system)
  593. (arguments
  594. `(#:skip-build? #t
  595. #:cargo-inputs
  596. (("rust-glib-sys" ,rust-glib-sys-0.10)
  597. ("rust-gobject-sys" ,rust-gobject-sys-0.10)
  598. ("rust-libc" ,rust-libc-0.2)
  599. ("rust-system-deps" ,rust-system-deps-1)
  600. ("rust-winapi" ,rust-winapi-0.3))))
  601. (inputs
  602. `(("glib" ,glib)))
  603. (home-page "https://gtk-rs.org/")
  604. (synopsis "FFI bindings to libgio-2.0")
  605. (description "This package provides FFI bindings to libgio-2.0.")
  606. (license license:expat)))
  607. (define-public rust-gio-sys-0.9
  608. (package
  609. (inherit rust-gio-sys-0.10)
  610. (name "rust-gio-sys")
  611. (version "0.9.1")
  612. (source
  613. (origin
  614. (method url-fetch)
  615. (uri (crate-uri "gio-sys" version))
  616. (file-name (string-append name "-" version ".tar.gz"))
  617. (sha256
  618. (base32 "049rafihxp3maxg3fwj6062ni9dcfilvhfq6ibnfgsmr89925bag"))))
  619. (arguments
  620. `(#:tests? #f ; Some test libraries not included in release.
  621. #:cargo-inputs
  622. (("rust-glib-sys" ,rust-glib-sys-0.9)
  623. ("rust-gobject-sys" ,rust-gobject-sys-0.9)
  624. ("rust-libc" ,rust-libc-0.2)
  625. ("rust-pkg-config" ,rust-pkg-config-0.3))
  626. #:cargo-development-inputs
  627. (("rust-shell-words" ,rust-shell-words-0.1)
  628. ("rust-tempfile" ,rust-tempfile-3))))))
  629. (define-public rust-gir-format-check-0.1
  630. (package
  631. (name "rust-gir-format-check")
  632. (version "0.1.1")
  633. (source
  634. (origin
  635. (method url-fetch)
  636. (uri (crate-uri "gir-format-check" version))
  637. (file-name
  638. (string-append name "-" version ".tar.gz"))
  639. (sha256
  640. (base32
  641. "0znl4qcgmg0656zk9vjkwdn9wj1zpkd0m0l5jnzmahd80ii7vf4b"))))
  642. (build-system cargo-build-system)
  643. (home-page "https://github.com/gtk-rs/gir-format-check")
  644. (synopsis "File format checker")
  645. (description "File format checker in Rust.")
  646. (license license:expat)))
  647. (define-public rust-glib-0.10
  648. (package
  649. (name "rust-glib")
  650. (version "0.10.3")
  651. (source
  652. (origin
  653. (method url-fetch)
  654. (uri (crate-uri "glib" version))
  655. (file-name (string-append name "-" version ".tar.gz"))
  656. (sha256
  657. (base32 "1ifh56nhvhcrssxqkad876qqrlnl16q6b8ap3f7ncpjinw9m0s0c"))))
  658. (build-system cargo-build-system)
  659. (arguments
  660. `(#:skip-build? #t
  661. #:cargo-inputs
  662. (("rust-bitflags" ,rust-bitflags-1)
  663. ("rust-futures-channel" ,rust-futures-channel-0.3)
  664. ("rust-futures-core" ,rust-futures-core-0.3)
  665. ("rust-futures-executor" ,rust-futures-executor-0.3)
  666. ("rust-futures-preview" ,rust-futures-preview-0.3)
  667. ("rust-futures-task" ,rust-futures-task-0.3)
  668. ("rust-futures-util" ,rust-futures-util-0.3)
  669. ("rust-glib-macros" ,rust-glib-macros-0.10)
  670. ("rust-glib-sys" ,rust-glib-sys-0.10)
  671. ("rust-gobject-sys" ,rust-gobject-sys-0.10)
  672. ("rust-libc" ,rust-libc-0.2)
  673. ("rust-once-cell" ,rust-once-cell-1))))
  674. (inputs
  675. `(("glib" ,glib)))
  676. (home-page "https://gtk-rs.org/")
  677. (synopsis "Rust bindings for the GLib library")
  678. (description "Rust bindings for the GLib library")
  679. (license license:expat)))
  680. (define-public rust-glib-0.9
  681. (package
  682. (inherit rust-glib-0.10)
  683. (name "rust-glib")
  684. (version "0.9.3")
  685. (source
  686. (origin
  687. (method url-fetch)
  688. (uri (crate-uri "glib" version))
  689. (file-name
  690. (string-append name "-" version ".tar.gz"))
  691. (sha256
  692. (base32
  693. "1h3100mf7kdfxibjz5na0sqzbd2mcsyd8pzivn3666w414x5gys0"))))
  694. (arguments
  695. `(#:cargo-inputs
  696. (("rust-bitflags" ,rust-bitflags-1)
  697. ("rust-futures-channel" ,rust-futures-channel-0.3)
  698. ("rust-futures-core" ,rust-futures-core-0.3)
  699. ("rust-futures-executor" ,rust-futures-executor-0.3)
  700. ("rust-futures-preview" ,rust-futures-preview-0.3)
  701. ("rust-futures-task" ,rust-futures-task-0.3)
  702. ("rust-futures-util" ,rust-futures-util-0.3)
  703. ("rust-glib-sys" ,rust-glib-sys-0.9)
  704. ("rust-gobject-sys" ,rust-gobject-sys-0.9)
  705. ("rust-lazy-static" ,rust-lazy-static-1)
  706. ("rust-libc" ,rust-libc-0.2))
  707. #:cargo-development-inputs
  708. (("rust-tempfile" ,rust-tempfile-3))))))
  709. (define-public rust-glib-0.8
  710. (package
  711. (inherit rust-glib-0.9)
  712. (name "rust-glib")
  713. (version "0.8.2")
  714. (source
  715. (origin
  716. (method url-fetch)
  717. (uri (crate-uri "glib" version))
  718. (file-name
  719. (string-append name "-" version ".tar.gz"))
  720. (sha256
  721. (base32
  722. "0ysy87zrwyzhfpf3d8rkyyr3amwj85wky05fsl7kx95s84l269xy"))))
  723. (arguments
  724. `(#:cargo-inputs
  725. (("rust-bitflags" ,rust-bitflags-1)
  726. ("rust-futures-preview" ,rust-futures-preview-0.3)
  727. ("rust-glib-sys" ,rust-glib-sys-0.9)
  728. ("rust-gobject-sys" ,rust-gobject-sys-0.9)
  729. ("rust-lazy-static" ,rust-lazy-static-1)
  730. ("rust-libc" ,rust-libc-0.2))
  731. #:cargo-development-inputs
  732. (("rust-tempfile" ,rust-tempfile-3))))))
  733. (define-public rust-glib-macros-0.10
  734. (package
  735. (name "rust-glib-macros")
  736. (version "0.10.1")
  737. (source
  738. (origin
  739. (method url-fetch)
  740. (uri (crate-uri "glib-macros" version))
  741. (file-name (string-append name "-" version ".tar.gz"))
  742. (sha256
  743. (base32 "0fa00s6gnj3hgri9z926199jidczlmjr1db0n4r80sins4k6lj21"))))
  744. (build-system cargo-build-system)
  745. (arguments
  746. `(#:skip-build? #t
  747. #:cargo-inputs
  748. (("rust-anyhow" ,rust-anyhow-1)
  749. ("rust-heck" ,rust-heck-0.3)
  750. ("rust-itertools" ,rust-itertools-0.9)
  751. ("rust-proc-macro-crate" ,rust-proc-macro-crate-0.1)
  752. ("rust-proc-macro-error" ,rust-proc-macro-error-1)
  753. ("rust-proc-macro2" ,rust-proc-macro2-1)
  754. ("rust-quote" ,rust-quote-1)
  755. ("rust-syn" ,rust-syn-1))))
  756. (home-page "https://gtk-rs.org/")
  757. (synopsis "Rust bindings for the GLib library, proc macros crate")
  758. (description "Rust bindings for the GLib library, proc macros crate.")
  759. (license license:expat)))
  760. (define-public rust-glib-sys-0.10
  761. (package
  762. (name "rust-glib-sys")
  763. (version "0.10.1")
  764. (source
  765. (origin
  766. (method url-fetch)
  767. (uri (crate-uri "glib-sys" version))
  768. (file-name (string-append name "-" version ".tar.gz"))
  769. (sha256
  770. (base32 "1hfdwilf3dnrv3pnfbwmp3h2afgwvfsapcgjfg8276kflsbvksf7"))))
  771. (build-system cargo-build-system)
  772. (arguments
  773. `(#:skip-build? #t
  774. #:cargo-inputs
  775. (("rust-libc" ,rust-libc-0.2)
  776. ("rust-system-deps" ,rust-system-deps-1))
  777. #:cargo-development-inputs
  778. (("rust-shell-words" ,rust-shell-words-0.1)
  779. ("rust-tempfile" ,rust-tempfile-3))))
  780. (inputs
  781. `(("glib" ,glib)))
  782. (home-page "https://gtk-rs.org/")
  783. (synopsis "FFI bindings to libglib-2.0")
  784. (description "This package provides FFI bindings to libglib-2.0.")
  785. (license license:expat)))
  786. (define-public rust-glib-sys-0.9
  787. (package
  788. (inherit rust-glib-sys-0.10)
  789. (name "rust-glib-sys")
  790. (version "0.9.1")
  791. (source
  792. (origin
  793. (method url-fetch)
  794. (uri (crate-uri "glib-sys" version))
  795. (file-name
  796. (string-append name "-" version ".tar.gz"))
  797. (sha256
  798. (base32
  799. "1qhnwfqqcp63mx4q9744rfkq78g6ky2j8ppsxxgw0ipl08w6z1cm"))))
  800. (arguments
  801. `(#:tests? #f ; Some test libraries not included in release.
  802. #:cargo-inputs
  803. (("rust-libc" ,rust-libc-0.2)
  804. ("rust-pkg-config" ,rust-pkg-config-0.3))
  805. #:cargo-development-inputs
  806. (("rust-shell-words" ,rust-shell-words-0.1)
  807. ("rust-tempfile" ,rust-tempfile-3))))))
  808. (define-public rust-gobject-sys-0.10
  809. (package
  810. (name "rust-gobject-sys")
  811. (version "0.10.0")
  812. (source
  813. (origin
  814. (method url-fetch)
  815. (uri (crate-uri "gobject-sys" version))
  816. (file-name (string-append name "-" version ".tar.gz"))
  817. (sha256
  818. (base32 "1311d3zbdhl1g7ibj1iy1650513yrhxbjxgfhazn52ii1jv368cm"))))
  819. (build-system cargo-build-system)
  820. (arguments
  821. `(#:skip-build? #t
  822. #:cargo-inputs
  823. (("rust-glib-sys" ,rust-glib-sys-0.10)
  824. ("rust-libc" ,rust-libc-0.2)
  825. ("rust-system-deps" ,rust-system-deps-1))
  826. #:cargo-development-inputs
  827. (("rust-shell-words" ,rust-shell-words-0.1)
  828. ("rust-tempfile" ,rust-tempfile-3))))
  829. (inputs
  830. `(("glib" ,glib)))
  831. (home-page "https://gtk-rs.org/")
  832. (synopsis "FFI bindings to libgobject-2.0")
  833. (description "This package provides FFI bindings to libgobject-2.0.")
  834. (license license:expat)))
  835. (define-public rust-gobject-sys-0.9
  836. (package
  837. (inherit rust-gobject-sys-0.10)
  838. (name "rust-gobject-sys")
  839. (version "0.9.1")
  840. (source
  841. (origin
  842. (method url-fetch)
  843. (uri (crate-uri "gobject-sys" version))
  844. (file-name
  845. (string-append name "-" version ".tar.gz"))
  846. (sha256
  847. (base32 "1nakflbp3gjaas4fw7sn3p1p32khyfpcq1h06z7yqd10yq2ail9i"))))
  848. (arguments
  849. `(#:tests? #f ; Some test libraries not included in release.
  850. #:cargo-inputs
  851. (("rust-glib-sys" ,rust-glib-sys-0.9)
  852. ("rust-libc" ,rust-libc-0.2)
  853. ("rust-pkg-config" ,rust-pkg-config-0.3))
  854. #:cargo-development-inputs
  855. (("rust-shell-words" ,rust-shell-words-0.1)
  856. ("rust-tempfile" ,rust-tempfile-3))))))
  857. (define-public rust-gtk-0.8
  858. (package
  859. (name "rust-gtk")
  860. (version "0.8.1")
  861. (source
  862. (origin
  863. (method url-fetch)
  864. (uri (crate-uri "gtk" version))
  865. (file-name
  866. (string-append name "-" version ".tar.gz"))
  867. (sha256
  868. (base32 "13ygzblfv40l2kp70rnjymz7vk2g2wdjs04lhmk9q8wh0bbyiqc7"))))
  869. (build-system cargo-build-system)
  870. (arguments
  871. `(#:cargo-inputs
  872. (("rust-atk" ,rust-atk-0.8)
  873. ("rust-bitflags" ,rust-bitflags-1)
  874. ("rust-cairo-rs" ,rust-cairo-rs-0.8)
  875. ("rust-cairo-sys-rs" ,rust-cairo-sys-rs-0.9)
  876. ("rust-cc" ,rust-cc-1)
  877. ("rust-gdk" ,rust-gdk-0.12)
  878. ("rust-gdk-pixbuf" ,rust-gdk-pixbuf-0.8)
  879. ("rust-gdk-pixbuf-sys" ,rust-gdk-pixbuf-sys-0.9)
  880. ("rust-gdk-sys" ,rust-gdk-sys-0.9)
  881. ("rust-gio" ,rust-gio-0.8)
  882. ("rust-gio-sys" ,rust-gio-sys-0.9)
  883. ("rust-glib" ,rust-glib-0.9)
  884. ("rust-glib-sys" ,rust-glib-sys-0.9)
  885. ("rust-gobject-sys" ,rust-gobject-sys-0.9)
  886. ("rust-gtk-rs-lgpl-docs" ,rust-gtk-rs-lgpl-docs-0.1)
  887. ("rust-gtk-sys" ,rust-gtk-sys-0.9)
  888. ("rust-lazy-static" ,rust-lazy-static-1)
  889. ("rust-libc" ,rust-libc-0.2)
  890. ("rust-pango" ,rust-pango-0.8)
  891. ("rust-pango-sys" ,rust-pango-sys-0.9))
  892. #:cargo-development-inputs
  893. (("rust-gir-format-check" ,rust-gir-format-check-0.1))))
  894. (inputs
  895. `(("atk" ,atk)
  896. ("cairo" ,cairo)
  897. ("glib" ,glib)
  898. ("gtk+" ,gtk+)
  899. ("pango" ,pango)))
  900. (home-page "https://gtk-rs.org/")
  901. (synopsis "Rust bindings for the GTK+ 3 library")
  902. (description "This package provides Rust bindings for the GTK+ 3 library.")
  903. (license license:expat)))
  904. (define-public rust-gtk-rs-lgpl-docs-0.1
  905. (package
  906. (name "rust-gtk-rs-lgpl-docs")
  907. (version "0.1.18")
  908. (source
  909. (origin
  910. (method url-fetch)
  911. (uri (crate-uri "gtk-rs-lgpl-docs" version))
  912. (file-name (string-append name "-" version ".tar.gz"))
  913. (sha256
  914. (base32 "0xm3lm15j8yfn2jzh3sz6hrq2g2k917ahnp5caxw9c7z8sgr9f4m"))))
  915. (build-system cargo-build-system)
  916. (arguments
  917. `(#:cargo-inputs
  918. (("rust-rustdoc-stripper" ,rust-rustdoc-stripper-0.1))))
  919. (home-page "https://gtk-rs.org/")
  920. (synopsis "LGPL-licensed docs for Gtk-rs crates")
  921. (description
  922. "LGPL-licensed docs for Gtk-rs crates.")
  923. (license license:lgpl2.0)))
  924. (define-public rust-gtk-sys-0.9
  925. (package
  926. (name "rust-gtk-sys")
  927. (version "0.9.2")
  928. (source
  929. (origin
  930. (method url-fetch)
  931. (uri (crate-uri "gtk-sys" version))
  932. (file-name (string-append name "-" version ".tar.gz"))
  933. (sha256
  934. (base32 "1hd4w49iaivzjkbxi0bhabqp1ifkzg9g47n822sh12xlqxhgdpjk"))))
  935. (build-system cargo-build-system)
  936. (arguments
  937. `(#:tests? #f ;missing files
  938. #:cargo-inputs
  939. (("rust-atk-sys" ,rust-atk-sys-0.9)
  940. ("rust-cairo-sys-rs" ,rust-cairo-sys-rs-0.9)
  941. ("rust-gdk-pixbuf-sys" ,rust-gdk-pixbuf-sys-0.9)
  942. ("rust-gdk-sys" ,rust-gdk-sys-0.9)
  943. ("rust-gio-sys" ,rust-gio-sys-0.9)
  944. ("rust-glib-sys" ,rust-glib-sys-0.9)
  945. ("rust-gobject-sys" ,rust-gobject-sys-0.9)
  946. ("rust-libc" ,rust-libc-0.2)
  947. ("rust-pango-sys" ,rust-pango-sys-0.9)
  948. ("rust-pkg-config" ,rust-pkg-config-0.3))
  949. #:cargo-development-inputs
  950. (("rust-shell-words" ,rust-shell-words-0.1)
  951. ("rust-tempfile" ,rust-tempfile-3))))
  952. (inputs
  953. `(("gtk+" ,gtk+)))
  954. (home-page "https://gtk-rs.org/")
  955. (synopsis "FFI bindings to libgtk-3")
  956. (description "This package provides FFI bindings to libgtk-3.")
  957. (license license:expat)))
  958. (define-public rust-pango-0.9
  959. (package
  960. (name "rust-pango")
  961. (version "0.9.1")
  962. (source
  963. (origin
  964. (method url-fetch)
  965. (uri (crate-uri "pango" version))
  966. (file-name (string-append name "-" version ".tar.gz"))
  967. (sha256
  968. (base32 "0f64hynd9vq6966wb66mrg5kq9q371bkhncp37nqrgdyh22hcdwr"))))
  969. (build-system cargo-build-system)
  970. (arguments
  971. `(#:skip-build? #t
  972. #:cargo-inputs
  973. (("rust-bitflags" ,rust-bitflags-1)
  974. ("rust-glib" ,rust-glib-0.10)
  975. ("rust-glib-sys" ,rust-glib-sys-0.10)
  976. ("rust-gobject-sys" ,rust-gobject-sys-0.10)
  977. ("rust-gtk-rs-lgpl-docs" ,rust-gtk-rs-lgpl-docs-0.1)
  978. ("rust-libc" ,rust-libc-0.2)
  979. ("rust-once-cell" ,rust-once-cell-1)
  980. ("rust-pango-sys" ,rust-pango-sys-0.10))
  981. #:cargo-development-inputs
  982. (("rust-gir-format-check" ,rust-gir-format-check-0.1))))
  983. (inputs
  984. `(("pango" ,pango)))
  985. (home-page "https://gtk-rs.org/")
  986. (synopsis "Rust bindings for the Pango library")
  987. (description "Rust bindings for the Pango library")
  988. (license license:expat)))
  989. (define-public rust-pango-0.8
  990. (package
  991. (inherit rust-pango-0.9)
  992. (name "rust-pango")
  993. (version "0.8.0")
  994. (source
  995. (origin
  996. (method url-fetch)
  997. (uri (crate-uri "pango" version))
  998. (file-name
  999. (string-append name "-" version ".tar.gz"))
  1000. (sha256
  1001. (base32
  1002. "0xq50950il3228grzs4xvc5s6phxcl5l50grz6syvs0vixr6p70y"))))
  1003. (arguments
  1004. `(#:cargo-inputs
  1005. (("rust-bitflags" ,rust-bitflags-1)
  1006. ("rust-glib" ,rust-glib-0.9)
  1007. ("rust-glib-sys" ,rust-glib-sys-0.9)
  1008. ("rust-gobject-sys" ,rust-gobject-sys-0.9)
  1009. ("rust-lazy-static" ,rust-lazy-static-1)
  1010. ("rust-libc" ,rust-libc-0.2)
  1011. ("rust-pango-sys" ,rust-pango-sys-0.9)
  1012. ("rust-gtk-rs-lgpl-docs" ,rust-gtk-rs-lgpl-docs-0.1))
  1013. #:cargo-development-inputs
  1014. (("rust-gir-format-check" ,rust-gir-format-check-0.1))))))
  1015. (define-public rust-pango-0.7
  1016. (package
  1017. (inherit rust-pango-0.8)
  1018. (name "rust-pango")
  1019. (version "0.7.0")
  1020. (source
  1021. (origin
  1022. (method url-fetch)
  1023. (uri (crate-uri "pango" version))
  1024. (file-name
  1025. (string-append name "-" version ".tar.gz"))
  1026. (sha256
  1027. (base32
  1028. "11np7nxb69g3kid2l78b7k519x1wk1c3f9yy7swgzy24n5qs0grr"))))
  1029. (arguments
  1030. `(#:cargo-inputs
  1031. (("rust-bitflags" ,rust-bitflags-1)
  1032. ("rust-glib" ,rust-glib-0.8)
  1033. ("rust-glib-sys" ,rust-glib-sys-0.9)
  1034. ("rust-gobject-sys" ,rust-gobject-sys-0.9)
  1035. ("rust-lazy-static" ,rust-lazy-static-1)
  1036. ("rust-libc" ,rust-libc-0.2)
  1037. ("rust-pango-sys" ,rust-pango-sys-0.9)
  1038. ("rust-gtk-rs-lgpl-docs" ,rust-gtk-rs-lgpl-docs-0.1))
  1039. #:cargo-development-inputs
  1040. (("rust-gir-format-check" ,rust-gir-format-check-0.1))))))
  1041. (define-public rust-pango-sys-0.10
  1042. (package
  1043. (name "rust-pango-sys")
  1044. (version "0.10.0")
  1045. (source
  1046. (origin
  1047. (method url-fetch)
  1048. (uri (crate-uri "pango-sys" version))
  1049. (file-name (string-append name "-" version ".tar.gz"))
  1050. (sha256
  1051. (base32 "1468xzyk2wanxb2b32fsmwk6bnafdaicxl5b4301dlb2ic66bli4"))))
  1052. (build-system cargo-build-system)
  1053. (arguments
  1054. `(#:skip-build? #t
  1055. #:cargo-inputs
  1056. (("rust-glib-sys" ,rust-glib-sys-0.10)
  1057. ("rust-gobject-sys" ,rust-gobject-sys-0.10)
  1058. ("rust-libc" ,rust-libc-0.2)
  1059. ("rust-system-deps" ,rust-system-deps-1))))
  1060. (inputs
  1061. `(("pango" ,pango)))
  1062. (home-page "https://gtk-rs.org/")
  1063. (synopsis "FFI bindings to libpango-1.0")
  1064. (description "This package provides FFI bindings to @code{libpango-1.0}.")
  1065. (license license:expat)))
  1066. (define-public rust-pango-sys-0.9
  1067. (package
  1068. (inherit rust-pango-sys-0.10)
  1069. (name "rust-pango-sys")
  1070. (version "0.9.1")
  1071. (source
  1072. (origin
  1073. (method url-fetch)
  1074. (uri (crate-uri "pango-sys" version))
  1075. (file-name (string-append name "-" version ".tar.gz"))
  1076. (sha256
  1077. (base32 "0zdynikh6jrfa31fpmbrwnz46a57idci73zzkf0z0g3vj223vfc6"))))
  1078. (arguments
  1079. `(#:tests? #f ; Some test files not included in release.
  1080. #:cargo-inputs
  1081. (("rust-glib-sys" ,rust-glib-sys-0.9)
  1082. ("rust-gobject-sys" ,rust-gobject-sys-0.9)
  1083. ("rust-libc" ,rust-libc-0.2)
  1084. ("rust-pkg-config" ,rust-pkg-config-0.3))
  1085. #:cargo-development-inputs
  1086. (("rust-shell-words" ,rust-shell-words-0.1)
  1087. ("rust-tempfile" ,rust-tempfile-3))))))
  1088. (define-public rust-pangocairo-0.9
  1089. (package
  1090. (name "rust-pangocairo")
  1091. (version "0.9.0")
  1092. (source
  1093. (origin
  1094. (method url-fetch)
  1095. (uri (crate-uri "pangocairo" version))
  1096. (file-name
  1097. (string-append name "-" version ".tar.gz"))
  1098. (sha256
  1099. (base32
  1100. "0bap3h78hdqdyln58349qjjbcv45m8a0a16c4n9fprdj1my0gldx"))))
  1101. (build-system cargo-build-system)
  1102. (arguments
  1103. `(#:cargo-inputs
  1104. (("rust-bitflags" ,rust-bitflags-1)
  1105. ("rust-cairo-rs" ,rust-cairo-rs-0.8)
  1106. ("rust-cairo-sys-rs" ,rust-cairo-sys-rs-0.9)
  1107. ("rust-glib" ,rust-glib-0.9)
  1108. ("rust-glib-sys" ,rust-glib-sys-0.9)
  1109. ("rust-gobject-sys" ,rust-gobject-sys-0.9)
  1110. ("rust-libc" ,rust-libc-0.2)
  1111. ("rust-pango" ,rust-pango-0.8)
  1112. ("rust-pango-sys" ,rust-pango-sys-0.9)
  1113. ("rust-pangocairo-sys" ,rust-pangocairo-sys-0.10)
  1114. ("rust-gtk-rs-lgpl-docs" ,rust-gtk-rs-lgpl-docs-0.1))
  1115. #:cargo-development-inputs
  1116. (("rust-gir-format-check" ,rust-gir-format-check-0.1))))
  1117. (inputs
  1118. `(("gtk+" ,gtk+)))
  1119. (home-page "https://gtk-rs.org/")
  1120. (synopsis "Rust bindings for the PangoCairo library")
  1121. (description
  1122. "Rust bindings for the PangoCairo library.")
  1123. (license license:expat)))
  1124. (define-public rust-pangocairo-0.8
  1125. (package
  1126. (inherit rust-pangocairo-0.9)
  1127. (name "rust-pangocairo")
  1128. (version "0.8.0")
  1129. (source
  1130. (origin
  1131. (method url-fetch)
  1132. (uri (crate-uri "pangocairo" version))
  1133. (file-name
  1134. (string-append name "-" version ".tar.gz"))
  1135. (sha256
  1136. (base32
  1137. "0qjiwsp73x3w0493dzycyjzxnzwq7ixwmf1ccr5r41pjhxbnk1kl"))))
  1138. (arguments
  1139. `(#:cargo-inputs
  1140. (("rust-bitflags" ,rust-bitflags-1)
  1141. ("rust-cairo-rs" ,rust-cairo-rs-0.7)
  1142. ("rust-cairo-sys-rs" ,rust-cairo-sys-rs-0.9)
  1143. ("rust-glib" ,rust-glib-0.8)
  1144. ("rust-glib-sys" ,rust-glib-sys-0.9)
  1145. ("rust-gobject-sys" ,rust-gobject-sys-0.9)
  1146. ("rust-libc" ,rust-libc-0.2)
  1147. ("rust-pango" ,rust-pango-0.7)
  1148. ("rust-pango-sys" ,rust-pango-sys-0.9)
  1149. ("rust-pangocairo-sys" ,rust-pangocairo-sys-0.10)
  1150. ("rust-gtk-rs-lgpl-docs" ,rust-gtk-rs-lgpl-docs-0.1))
  1151. #:cargo-development-inputs
  1152. (("rust-gir-format-check" ,rust-gir-format-check-0.1))))))
  1153. (define-public rust-pangocairo-sys-0.10
  1154. (package
  1155. (name "rust-pangocairo-sys")
  1156. (version "0.10.1")
  1157. (source
  1158. (origin
  1159. (method url-fetch)
  1160. (uri (crate-uri "pangocairo-sys" version))
  1161. (file-name
  1162. (string-append name "-" version ".tar.gz"))
  1163. (sha256
  1164. (base32
  1165. "1zlyf5vajarnxg5034b8qa5w5zajv96lfvlgiki26svpmcqip4m3"))))
  1166. (build-system cargo-build-system)
  1167. (arguments
  1168. `(#:cargo-inputs
  1169. (("rust-cairo-sys-rs" ,rust-cairo-sys-rs-0.9)
  1170. ("rust-glib-sys" ,rust-glib-sys-0.9)
  1171. ("rust-libc" ,rust-libc-0.2)
  1172. ("rust-pango-sys" ,rust-pango-sys-0.9)
  1173. ("rust-pkg-config" ,rust-pkg-config-0.3))
  1174. #:cargo-development-inputs
  1175. (("rust-shell-words" ,rust-shell-words-0.1)
  1176. ("rust-tempfile" ,rust-tempfile-3))))
  1177. (inputs
  1178. `(("gtk+" ,gtk+)))
  1179. (home-page "https://gtk-rs.org/")
  1180. (synopsis "FFI bindings to libgtk-3")
  1181. (description "This package provides FFI bindings to libgtk-3.")
  1182. (license license:expat)))