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
This commit is contained in:
Efraim Flashner 2024-09-18 14:11:18 +03:00
parent 2018a977d8
commit bc65634d52
No known key found for this signature in database
GPG key ID: 41AAE7DCCA3D8351

View file

@ -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