diff options
author | Petr Hodina <phodina@protonmail.com> | 2022-01-10 20:04:37 +0100 |
---|---|---|
committer | Nicolas Goaziou <mail@nicolasgoaziou.fr> | 2022-01-21 00:44:27 +0100 |
commit | 59a715b07ac9d0c40d94cbd8945e68d8fdc69224 (patch) | |
tree | 2ce3210dd8779bd1d87df4e8fad95e5adb66cfe1 /gnu | |
parent | 2e3dd8df8f0edf08b642ebd0526fa08874d748c8 (diff) | |
download | guix-59a715b07ac9d0c40d94cbd8945e68d8fdc69224.tar guix-59a715b07ac9d0c40d94cbd8945e68d8fdc69224.tar.gz |
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>
Diffstat (limited to 'gnu')
-rw-r--r-- | gnu/packages/crates-gtk.scm | 43 |
1 files changed, 35 insertions, 8 deletions
diff --git a/gnu/packages/crates-gtk.scm b/gnu/packages/crates-gtk.scm index 7dcfc5df2c..c91556a098 100644 --- a/gnu/packages/crates-gtk.scm +++ b/gnu/packages/crates-gtk.scm @@ -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 |