From ce2002911cd1debf38d7b898f23eb1378ac83f22 Mon Sep 17 00:00:00 2001 From: Efraim Flashner Date: Wed, 2 Aug 2023 19:32:57 +0300 Subject: [PATCH] gnu: Add rust-gobject-sys-0.17. * gnu/packages/crates-gtk.scm (rust-gobject-sys-0.17): New variable. (rust-gobject-sys-0.15): Inherit from rust-gobject-sys-0.17. --- gnu/packages/crates-gtk.scm | 50 +++++++++++++++++++++++++++---------- 1 file changed, 37 insertions(+), 13 deletions(-) diff --git a/gnu/packages/crates-gtk.scm b/gnu/packages/crates-gtk.scm index a27ea1bbd6..1bd61d7f19 100644 --- a/gnu/packages/crates-gtk.scm +++ b/gnu/packages/crates-gtk.scm @@ -1462,25 +1462,24 @@ (define-public rust-glib-sys-0.9 (("rust-shell-words" ,rust-shell-words-0.1) ("rust-tempfile" ,rust-tempfile-3)))))) -(define-public rust-gobject-sys-0.15 +(define-public rust-gobject-sys-0.17 (package (name "rust-gobject-sys") - (version "0.15.10") - (source - (origin - (method url-fetch) - (uri (crate-uri "gobject-sys" version)) - (file-name (string-append name "-" version ".tar.gz")) - (sha256 - (base32 "02hyilvpi4hw4gr03z2plsbf1zicsfs5l0xxadqx3v3b4i2cwmqd")))) + (version "0.17.10") + (source (origin + (method url-fetch) + (uri (crate-uri "gobject-sys" version)) + (file-name (string-append name "-" version ".tar.gz")) + (sha256 + (base32 + "0ql0pcab6dxjapiglxcjaavbbh1sznyc2wj5q273b9j0fwqw6d6d")))) (build-system cargo-build-system) (arguments - `(;; FIXME: Constant value mismatch for G_TYPE_FUNDAMENTAL_MAX - ;; Rust: "255" - ;; C: "1020" + `(;; XXX: Tests are sensitive to the version of glib, even though + ;; the library supports a wide range. Skip for now. #:tests? #f #:cargo-inputs - (("rust-glib-sys" ,rust-glib-sys-0.15) + (("rust-glib-sys" ,rust-glib-sys-0.17) ("rust-libc" ,rust-libc-0.2) ("rust-system-deps" ,rust-system-deps-6)) #:cargo-development-inputs @@ -1495,6 +1494,31 @@ (define-public rust-gobject-sys-0.15 (description "This package provides FFI bindings to libgobject-2.0.") (license license:expat))) +(define-public rust-gobject-sys-0.15 + (package + (inherit rust-gobject-sys-0.17) + (name "rust-gobject-sys") + (version "0.15.10") + (source + (origin + (method url-fetch) + (uri (crate-uri "gobject-sys" version)) + (file-name (string-append name "-" version ".tar.gz")) + (sha256 + (base32 "02hyilvpi4hw4gr03z2plsbf1zicsfs5l0xxadqx3v3b4i2cwmqd")))) + (arguments + `(;; FIXME: Constant value mismatch for G_TYPE_FUNDAMENTAL_MAX + ;; Rust: "255" + ;; C: "1020" + #:tests? #f + #:cargo-inputs + (("rust-glib-sys" ,rust-glib-sys-0.15) + ("rust-libc" ,rust-libc-0.2) + ("rust-system-deps" ,rust-system-deps-6)) + #:cargo-development-inputs + (("rust-shell-words" ,rust-shell-words-1) + ("rust-tempfile" ,rust-tempfile-3)))))) + (define-public rust-gobject-sys-0.14 (package (inherit rust-gobject-sys-0.15)