me
/
guix
Archived
1
0
Fork 0

gnu: Add rust-gdk-0.14.

* gnu/packages/crates-gtk.scm (rust-gdk-0.14): New variable.
  (rust-gdk-0.13): Inherit from above.

Signed-off-by: Nicolas Goaziou <mail@nicolasgoaziou.fr>
Petr Hodina 2022-01-10 20:04:37 +01:00 committed by Nicolas Goaziou
parent 2e3dd8df8f
commit 59a715b07a
No known key found for this signature in database
GPG Key ID: DA00B4F048E92F2D
1 changed files with 35 additions and 8 deletions

View File

@ -317,8 +317,42 @@
("rust-x11" ,rust-x11-2)
("rust-pkg-config" ,rust-pkg-config-0.3))))))
(define-public rust-gdk-0.14
(package
(name "rust-gdk")
(version "0.14.3")
(source
(origin
(method url-fetch)
(uri (crate-uri "gdk" version))
(file-name (string-append name "-" version ".tar.gz"))
(sha256
(base32 "0fwkm4glh7cici6yd96qlddyp4s2l029wa1sgh6xxn00zkf4kmxr"))))
(build-system cargo-build-system)
(arguments
`(#:skip-build?
#t
#:cargo-inputs
(("rust-bitflags" ,rust-bitflags-1)
("rust-cairo-rs" ,rust-cairo-rs-0.14)
("rust-gdk-pixbuf" ,rust-gdk-pixbuf-0.14)
("rust-gdk-sys" ,rust-gdk-sys-0.14)
("rust-gio" ,rust-gio-0.14)
("rust-glib" ,rust-glib-0.14)
("rust-libc" ,rust-libc-0.2)
("rust-pango" ,rust-pango-0.14))
#:cargo-development-inputs
(("rust-gir-format-check" ,rust-gir-format-check-0.1))))
(inputs
(list cairo gdk-pixbuf glib gtk+ pango))
(home-page "https://gtk-rs.org/")
(synopsis "Rust bindings for the GDK 3 library")
(description "This package provides Rust bindings for the GDK 3 library.")
(license license:expat)))
(define-public rust-gdk-0.13
(package
(inherit rust-gdk-0.14)
(name "rust-gdk")
(version "0.13.2")
(source
@ -328,7 +362,6 @@
(file-name (string-append name "-" version ".tar.gz"))
(sha256
(base32 "0zbb9bwg2z9vlcjj9b59qch3mfmszsrxya7syc5a39v85adq606v"))))
(build-system cargo-build-system)
(arguments
`(#:skip-build? #t
#:cargo-inputs
@ -346,13 +379,7 @@
("rust-libc" ,rust-libc-0.2)
("rust-pango" ,rust-pango-0.9))
#:cargo-development-inputs
(("rust-gir-format-check" ,rust-gir-format-check-0.1))))
(inputs
(list cairo gdk-pixbuf glib gtk+ pango))
(home-page "https://gtk-rs.org/")
(synopsis "Rust bindings for the GDK 3 library")
(description "This package provides Rust bindings for the GDK 3 library.")
(license license:expat)))
(("rust-gir-format-check" ,rust-gir-format-check-0.1))))))
(define-public rust-gdk-0.12
(package