diff options
author | Efraim Flashner <efraim@flashner.co.il> | 2024-09-18 14:09:49 +0300 |
---|---|---|
committer | Efraim Flashner <efraim@flashner.co.il> | 2024-11-28 11:04:20 +0200 |
commit | 9ee72220bbcb50c89852e044751cd44eec08d501 (patch) | |
tree | 1c1e17ded90ffa973b8e97220784aad69de8386e /gnu | |
parent | f0b613316828c763bafd9c8928d43ad56e11fb3e (diff) | |
download | guix-9ee72220bbcb50c89852e044751cd44eec08d501.tar.gz guix-9ee72220bbcb50c89852e044751cd44eec08d501.zip |
gnu: Add rust-gio-0.19.
* gnu/packages/crates-gtk.scm (rust-gio-0.19): New variable.
(rust-gio-0.18): Inherit from rust-gio-0.19.
Change-Id: Ia78e2a74deef816d67494e668679590da155c13f
Diffstat (limited to 'gnu')
-rw-r--r-- | gnu/packages/crates-gtk.scm | 49 |
1 files changed, 41 insertions, 8 deletions
diff --git a/gnu/packages/crates-gtk.scm b/gnu/packages/crates-gtk.scm index 480dacfd83..c30d4185df 100644 --- a/gnu/packages/crates-gtk.scm +++ b/gnu/packages/crates-gtk.scm @@ -1092,8 +1092,48 @@ (description "This package provides FFI bindings of GDK 4.") (license license:expat))) +(define-public rust-gio-0.19 + (package + (name "rust-gio") + (version "0.19.8") + (source + (origin + (method url-fetch) + (uri (crate-uri "gio" version)) + (file-name (string-append name "-" version ".tar.gz")) + (sha256 + (base32 "1znz5ngfvv3gbndf6lzz3hs27hlb8ysls4axlfccrzvkscbz2jac")))) + (build-system cargo-build-system) + (arguments + `(#:cargo-test-flags + '("--release" "--" + "--skip=settings::test::bool_set_get" + "--skip=settings::test::string_get") + #:cargo-inputs (("rust-futures-channel" ,rust-futures-channel-0.3) + ("rust-futures-core" ,rust-futures-core-0.3) + ("rust-futures-io" ,rust-futures-io-0.3) + ("rust-futures-util" ,rust-futures-util-0.3) + ("rust-gio-sys" ,rust-gio-sys-0.19) + ("rust-glib" ,rust-glib-0.19) + ("rust-libc" ,rust-libc-0.2) + ("rust-pin-project-lite" ,rust-pin-project-lite-0.2) + ("rust-smallvec" ,rust-smallvec-1) + ("rust-thiserror" ,rust-thiserror-1)) + #:cargo-development-inputs + (("rust-futures" ,rust-futures-0.3) + ("rust-futures-util" ,rust-futures-util-0.3) + ("rust-gir-format-check" ,rust-gir-format-check-0.1) + ("rust-serial-test" ,rust-serial-test-3)))) + (native-inputs (list pkg-config)) + (inputs (list glib)) + (home-page "https://gtk-rs.org/") + (synopsis "Rust bindings for the Gio library") + (description "This package provides Rust bindings for the Gio library.") + (license license:expat))) + (define-public rust-gio-0.18 (package + (inherit rust-gio-0.19) (name "rust-gio") (version "0.18.4") (source @@ -1103,7 +1143,6 @@ (file-name (string-append name "-" version ".tar.gz")) (sha256 (base32 "0wsc6mnx057s4ailacg99dwgna38dbqli5x7a6y9rdw75x9qzz6l")))) - (build-system cargo-build-system) (arguments `(#:cargo-test-flags '("--release" "--" @@ -1125,13 +1164,7 @@ (("rust-futures" ,rust-futures-0.3) ("rust-futures-util" ,rust-futures-util-0.3) ("rust-gir-format-check" ,rust-gir-format-check-0.1) - ("rust-serial-test" ,rust-serial-test-2)))) - (native-inputs (list pkg-config)) - (inputs (list glib)) - (home-page "https://gtk-rs.org/") - (synopsis "Rust bindings for the Gio library") - (description "Rust bindings for the Gio library.") - (license license:expat))) + ("rust-serial-test" ,rust-serial-test-2)))))) (define-public rust-gio-0.17 (package |