diff options
author | Efraim Flashner <efraim@flashner.co.il> | 2023-08-02 19:31:59 +0300 |
---|---|---|
committer | Efraim Flashner <efraim@flashner.co.il> | 2023-08-14 19:38:16 +0300 |
commit | 89ab3af547236b61b3d1f1e0546096976150f29a (patch) | |
tree | f298c766b5192223cea82a9ffdc3ee192f12a23e | |
parent | b556fc638d1436b498b465c4db9f2374536d9ea2 (diff) | |
download | guix-89ab3af547236b61b3d1f1e0546096976150f29a.tar guix-89ab3af547236b61b3d1f1e0546096976150f29a.tar.gz |
gnu: Add rust-glib-macros-0.17.
* gnu/packages/crates-gtk.scm (rust-glib-macros-0.17): New variable.
(rust-glib-macros-0.15): Inherit from rust-glib-macros-0.17.
-rw-r--r-- | gnu/packages/crates-gtk.scm | 42 |
1 files changed, 36 insertions, 6 deletions
diff --git a/gnu/packages/crates-gtk.scm b/gnu/packages/crates-gtk.scm index f2aa27526d..6cd9a77e50 100644 --- a/gnu/packages/crates-gtk.scm +++ b/gnu/packages/crates-gtk.scm @@ -1234,8 +1234,43 @@ #:cargo-development-inputs (("rust-tempfile" ,rust-tempfile-3)))))) +(define-public rust-glib-macros-0.17 + (package + (name "rust-glib-macros") + (version "0.17.10") + (source (origin + (method url-fetch) + (uri (crate-uri "glib-macros" version)) + (file-name (string-append name "-" version ".tar.gz")) + (sha256 + (base32 + "09nyh22nryip4i22mdrixzl4q0r5h5lxcn40mgqr30rk6y9wg9gc")))) + (build-system cargo-build-system) + (arguments + `(#:cargo-inputs + (("rust-anyhow" ,rust-anyhow-1) + ("rust-heck" ,rust-heck-0.4) + ("rust-proc-macro-crate" ,rust-proc-macro-crate-1) + ("rust-proc-macro-error" ,rust-proc-macro-error-1) + ("rust-proc-macro2" ,rust-proc-macro2-1) + ("rust-quote" ,rust-quote-1) + ("rust-syn" ,rust-syn-1)) + #:cargo-development-inputs + (("rust-glib" ,rust-glib-0.17) + ("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))) + (define-public rust-glib-macros-0.15 (package + (inherit rust-glib-macros-0.17) (name "rust-glib-macros") (version "0.15.11") (source @@ -1245,7 +1280,6 @@ (file-name (string-append name "-" version ".tar.gz")) (sha256 (base32 "0r3cr0c79rs91z0sps089nsf8ppnm8agp48qwwqlkc32lqqq39i5")))) - (build-system cargo-build-system) (arguments `(;; XXX: Circular dependency on rust-glib?? #:tests? #f @@ -1256,11 +1290,7 @@ ("rust-proc-macro-error" ,rust-proc-macro-error-1) ("rust-proc-macro2" ,rust-proc-macro2-1) ("rust-quote" ,rust-quote-1) - ("rust-syn" ,rust-syn-1)))) - (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-syn" ,rust-syn-1)))))) (define-public rust-glib-macros-0.14 (package |