diff options
author | Efraim Flashner <efraim@flashner.co.il> | 2024-09-18 14:11:18 +0300 |
---|---|---|
committer | Efraim Flashner <efraim@flashner.co.il> | 2024-11-28 11:04:20 +0200 |
commit | bc65634d52f94e2922376dcaf40310db9f850a62 (patch) | |
tree | b233870cd13524d96019ef787e65462450156474 /gnu | |
parent | 2018a977d8a1cbda5133b8af5ceca50e926c1928 (diff) | |
download | guix-bc65634d52f94e2922376dcaf40310db9f850a62.tar.gz guix-bc65634d52f94e2922376dcaf40310db9f850a62.zip |
gnu: Add rust-glib-0.19.
* gnu/packages/crates-gtk.scm (rust-glib-0.19): New variable.
(rust-glib-0.18): Inherit from rust-glib-0.19.
Change-Id: I8259e12adfa592792da8215ad46c38e753ae3d66
Diffstat (limited to 'gnu')
-rw-r--r-- | gnu/packages/crates-gtk.scm | 53 |
1 files changed, 45 insertions, 8 deletions
diff --git a/gnu/packages/crates-gtk.scm b/gnu/packages/crates-gtk.scm index d2425f68bc..a649975cab 100644 --- a/gnu/packages/crates-gtk.scm +++ b/gnu/packages/crates-gtk.scm @@ -1553,8 +1553,52 @@ (description "File format checker in Rust.") (license license:expat))) +(define-public rust-glib-0.19 + (package + (name "rust-glib") + (version "0.19.9") + (source + (origin + (method url-fetch) + (uri (crate-uri "glib" version)) + (file-name (string-append name "-" version ".tar.gz")) + (sha256 + (base32 "0i2ak1scmzfmfxbm2dr146jl4y9mafxf1ald05jr8iimy5wh4r9r")))) + (build-system cargo-build-system) + (arguments + `(#:cargo-test-flags + '("--release" "--" + "--skip=structured_log") + #:cargo-inputs (("rust-bitflags" ,rust-bitflags-2) + ("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-futures-util" ,rust-futures-util-0.3) + ("rust-gio-sys" ,rust-gio-sys-0.19) + ("rust-glib-macros" ,rust-glib-macros-0.19) + ("rust-glib-sys" ,rust-glib-sys-0.19) + ("rust-gobject-sys" ,rust-gobject-sys-0.19) + ("rust-libc" ,rust-libc-0.2) + ("rust-log" ,rust-log-0.4) + ("rust-memchr" ,rust-memchr-2) + ("rust-smallvec" ,rust-smallvec-1) + ("rust-thiserror" ,rust-thiserror-1)) + #:cargo-development-inputs + (("rust-criterion" ,rust-criterion-0.5) + ("rust-gir-format-check" ,rust-gir-format-check-0.1) + ("rust-tempfile" ,rust-tempfile-3) + ("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") + (description "This package provides Rust bindings for the GLib library.") + (license license:expat))) + (define-public rust-glib-0.18 (package + (inherit rust-glib-0.19) (name "rust-glib") (version "0.18.5") (source @@ -1564,7 +1608,6 @@ (file-name (string-append name "-" version ".tar.gz")) (sha256 (base32 "1r8fw0627nmn19bgk3xpmcfngx3wkn7mcpq5a8ma3risx3valg93")))) - (build-system cargo-build-system) (arguments `(#:cargo-test-flags '("--release" "--" @@ -1590,13 +1633,7 @@ (("rust-criterion" ,rust-criterion-0.5) ("rust-gir-format-check" ,rust-gir-format-check-0.1) ("rust-tempfile" ,rust-tempfile-3) - ("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") - (description "Rust bindings for the GLib library.") - (license license:expat))) + ("rust-trybuild2" ,rust-trybuild2-1)))))) (define-public rust-glib-0.17 (package |