From 2e3dd8df8f0edf08b642ebd0526fa08874d748c8 Mon Sep 17 00:00:00 2001 From: Petr Hodina Date: Mon, 10 Jan 2022 20:03:09 +0100 Subject: 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 --- gnu/packages/crates-gtk.scm | 44 +++++++++++++++++++++++++++++++++++++------- 1 file changed, 37 insertions(+), 7 deletions(-) diff --git a/gnu/packages/crates-gtk.scm b/gnu/packages/crates-gtk.scm index 43b3d509fc..7dcfc5df2c 100644 --- a/gnu/packages/crates-gtk.scm +++ b/gnu/packages/crates-gtk.scm @@ -572,8 +572,44 @@ (("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 @@ ("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 -- cgit v1.2.3