diff --git a/gnu/packages/crates-gtk.scm b/gnu/packages/crates-gtk.scm index a649975cab..f0ec651882 100644 --- a/gnu/packages/crates-gtk.scm +++ b/gnu/packages/crates-gtk.scm @@ -1796,8 +1796,37 @@ (define-public rust-glib-0.9 #:cargo-development-inputs (("rust-tempfile" ,rust-tempfile-3)))))) +(define-public rust-glib-macros-0.19 + (package + (name "rust-glib-macros") + (version "0.19.9") + (source + (origin + (method url-fetch) + (uri (crate-uri "glib-macros" version)) + (file-name (string-append name "-" version ".tar.gz")) + (sha256 + (base32 "1mzsh8jkg8vldvgvr9gsaidvn2myn5cbdn8a6m8rgbhlg8kv0aa4")))) + (build-system cargo-build-system) + (arguments + `(#:cargo-inputs (("rust-heck" ,rust-heck-0.5) + ("rust-proc-macro-crate" ,rust-proc-macro-crate-3) + ("rust-proc-macro2" ,rust-proc-macro2-1) + ("rust-quote" ,rust-quote-1) + ("rust-syn" ,rust-syn-2)) + #:cargo-development-inputs (("rust-glib" ,rust-glib-0.19) + ("rust-trybuild2" ,rust-trybuild2-1)))) + (native-inputs (list pkg-config)) + (inputs (list glib)) + (home-page "https://gtk-rs.org/") + (synopsis "Rust bindings for the GLib library, proc macros crate") + (description + "This package provides Rust bindings for the GLib library, proc macros crate.") + (license license:expat))) + (define-public rust-glib-macros-0.18 (package + (inherit rust-glib-macros-0.19) (name "rust-glib-macros") (version "0.18.5") (source @@ -1807,7 +1836,6 @@ (define-public rust-glib-macros-0.18 (file-name (string-append name "-" version ".tar.gz")) (sha256 (base32 "1p5cla53fcp195zp0hkqpmnn7iwmkdswhy7xh34002bw8y7j5c0b")))) - (build-system cargo-build-system) (arguments `(#:cargo-inputs (("rust-heck" ,rust-heck-0.4) @@ -1819,13 +1847,7 @@ (define-public rust-glib-macros-0.18 #:cargo-development-inputs (("rust-glib" ,rust-glib-0.18) ("rust-once-cell" ,rust-once-cell-1) - ("rust-trybuild2" ,rust-trybuild2-1)))) - (native-inputs (list pkg-config)) - (inputs (list glib)) - (home-page "https://gtk-rs.org/") - (synopsis "Rust bindings for the GLib library, proc macros crate") - (description "Rust bindings for the GLib library, proc macros crate.") - (license license:expat))) + ("rust-trybuild2" ,rust-trybuild2-1)))))) (define-public rust-glib-macros-0.17 (package