gnu: Add rust-gdk-sys-0.14.

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

Signed-off-by: Nicolas Goaziou <mail@nicolasgoaziou.fr>
This commit is contained in:
Petr Hodina 2022-01-10 20:03:09 +01:00 committed by Nicolas Goaziou
parent 3fd49875c6
commit 2e3dd8df8f
No known key found for this signature in database
GPG key ID: DA00B4F048E92F2D

View file

@ -572,8 +572,44 @@ (define-public rust-gdk-pixbuf-sys-0.9
(("rust-shell-words" ,rust-shell-words-0.1)
("rust-tempfile" ,rust-tempfile-3))))))
(define-public rust-gdk-sys-0.14
(package
(name "rust-gdk-sys")
(version "0.14.0")
(source
(origin
(method url-fetch)
(uri (crate-uri "gdk-sys" version))
(file-name (string-append name "-" version ".tar.gz"))
(sha256
(base32 "07hz3gg039sy7iffy2w5srxzsnqf15i3ryxkqfd995k67lyin28f"))))
(build-system cargo-build-system)
(arguments
`(#:skip-build?
#t
#:cargo-inputs
(("rust-cairo-sys-rs" ,rust-cairo-sys-rs-0.14)
("rust-gdk-pixbuf-sys" ,rust-gdk-pixbuf-sys-0.14)
("rust-gio-sys" ,rust-gio-sys-0.14)
("rust-glib-sys" ,rust-glib-sys-0.14)
("rust-gobject-sys" ,rust-gobject-sys-0.14)
("rust-libc" ,rust-libc-0.2)
("rust-pango-sys" ,rust-pango-sys-0.14)
("rust-pkg-config" ,rust-pkg-config-0.3)
("rust-system-deps" ,rust-system-deps-3))
#:cargo-development-inputs
(("rust-shell-words" ,rust-shell-words-0.1)
("rust-tempfile" ,rust-tempfile-3))))
(inputs
(list cairo gdk-pixbuf gtk+ glib pango))
(home-page "https://gtk-rs.org/")
(synopsis "FFI bindings to libgdk-3")
(description "FFI bindings to libgdk-3")
(license license:expat)))
(define-public rust-gdk-sys-0.10
(package
(inherit rust-gdk-sys-0.14)
(name "rust-gdk-sys")
(version "0.10.0")
(source
@ -598,13 +634,7 @@ (define-public rust-gdk-sys-0.10
("rust-system-deps" ,rust-system-deps-1))
#:cargo-development-inputs
(("rust-shell-words" ,rust-shell-words-0.1)
("rust-tempfile" ,rust-tempfile-3))))
(inputs
(list cairo gdk-pixbuf gtk+ glib pango))
(home-page "https://gtk-rs.org/")
(synopsis "FFI bindings to libgdk-3")
(description "FFI bindings to libgdk-3")
(license license:expat)))
("rust-tempfile" ,rust-tempfile-3))))))
(define-public rust-gdk-sys-0.9
(package