From 77ce330ac3a0a0e115e4614ef25834fda9b88360 Mon Sep 17 00:00:00 2001 From: Nicholas von Klitzing Date: Wed, 15 Dec 2021 23:48:07 +0100 Subject: [PATCH 20/29] gnu: Add rust-glib-0.14. * gnu/packages/crates-gtk.scm (rust-glib-0.14): New variable. --- gnu/packages/crates-gtk.scm | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) diff --git a/gnu/packages/crates-gtk.scm b/gnu/packages/crates-gtk.scm index 42e5911db6..96cd8a468e 100644 --- a/gnu/packages/crates-gtk.scm +++ b/gnu/packages/crates-gtk.scm @@ -1389,6 +1389,39 @@ (define-public rust-glib-macros-0.14 (description "Rust bindings for the GLib library, proc macros crate") (license license:expat))) +(define-public rust-glib-0.14 + (package + (name "rust-glib") + (version "0.14.8") + (source + (origin + (method url-fetch) + (uri (crate-uri "glib" version)) + (file-name (string-append name "-" version ".tar.gz")) + (sha256 + (base32 "194n6w5yy869lls3pr46x5nm049cn02qsljzcgv1w5dzc8g5ylbw")))) + (build-system cargo-build-system) + (arguments + `(#:skip-build? + #t + #:cargo-inputs + (("rust-bitflags" ,rust-bitflags-1) + ("rust-futures-channel" ,rust-futures-channel-0.3) + ("rust-futures-core" ,rust-futures-core-0.3) + ("rust-futures-executor" ,rust-futures-executor-0.3) + ("rust-futures-task" ,rust-futures-task-0.3) + ("rust-glib-macros" ,rust-glib-macros-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-log" ,rust-log-0.4) + ("rust-once-cell" ,rust-once-cell-1) + ("rust-smallvec" ,rust-smallvec-1)))) + (home-page "https://gtk-rs.org/") + (synopsis "Rust bindings for the GLib library") + (description "Rust bindings for the GLib library") + (license license:expat))) + (define-public rust-gtk-0.8 (package (name "rust-gtk") -- 2.34.0