diff options
author | Petr Hodina <phodina@protonmail.com> | 2022-01-10 20:03:09 +0100 |
---|---|---|
committer | Nicolas Goaziou <mail@nicolasgoaziou.fr> | 2022-01-21 00:44:26 +0100 |
commit | 2e3dd8df8f0edf08b642ebd0526fa08874d748c8 (patch) | |
tree | 44b5e0959f77a0b0044a7c2cdcc28a3997f7a122 | |
parent | 3fd49875c6729eaa2996a0aaa858d9915cc033f2 (diff) | |
download | guix-2e3dd8df8f0edf08b642ebd0526fa08874d748c8.tar.gz |
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>
-rw-r--r-- | gnu/packages/crates-gtk.scm | 44 |
1 files 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 |