gnu: rust-wayland-sys: Add 0.29.

* gnu/packages/crates-graphics.scm (rust-wayland-sys-0.29): New variable.
(rust-wayland-sys-0.28): Inherit from it.
This commit is contained in:
Marius Bakke 2022-07-27 13:40:55 +02:00
parent 8aef4c5071
commit b6242d29f4
No known key found for this signature in database
GPG key ID: A2A06DF2A33A54FA

View file

@ -2864,8 +2864,51 @@ (define-public rust-wayland-server-0.21
("rust-wayland-sys" ,rust-wayland-sys-0.21)
("rust-wayland-scanner" ,rust-wayland-scanner-0.21))))))
(define-public rust-wayland-sys-0.29
(package
(name "rust-wayland-sys")
(version "0.29.4")
(source
(origin
(method url-fetch)
(uri (crate-uri "wayland-sys" version))
(file-name (string-append name "-" version ".tar.gz"))
(sha256
(base32 "1m2jwk5q36jidwbdmdicmi27r9dzi4wanzg3i28nfxc9kbvisd6r"))))
(build-system cargo-build-system)
(arguments
`(#:cargo-inputs
(("rust-dlib" ,rust-dlib-0.5)
("rust-lazy-static" ,rust-lazy-static-1)
("rust-libc" ,rust-libc-0.2)
("rust-memoffset" ,rust-memoffset-0.6)
("rust-pkg-config" ,rust-pkg-config-0.3))
#:phases
(modify-phases %standard-phases
(add-after 'unpack 'patch-libraries
(lambda* (#:key inputs #:allow-other-keys)
(let ((libwayland (dirname (search-input-file
inputs "lib/libwayland-client.so"))))
(substitute* (find-files "src" "\\.rs$")
(("libwayland.*\\.so" shared-lib)
(string-append libwayland "/" shared-lib)))))))))
(inputs
(list rust-dlib-0.5 rust-lazy-static-1 rust-libc-0.2
rust-pkg-config-0.3))
(propagated-inputs
(list wayland))
(home-page "https://github.com/smithay/wayland-rs")
(synopsis "FFI bindings to the various @file{libwayland-*.so} libraries")
(description
"This package provides FFI bindings to the various
@file{libwayland-*.so} libraries. You should only need this crate if
you are working on custom Wayland protocol extensions. Look at the
crate @code{rust-wayland-client} for usable bindings.")
(license license:expat)))
(define-public rust-wayland-sys-0.28
(package
(inherit rust-wayland-sys-0.29)
(name "rust-wayland-sys")
(version "0.28.3")
(source
@ -2895,15 +2938,7 @@ (define-public rust-wayland-sys-0.28
(list rust-dlib-0.4 rust-lazy-static-1 rust-libc-0.2
rust-pkg-config-0.3))
(propagated-inputs
(list wayland))
(home-page "https://github.com/smithay/wayland-rs")
(synopsis "FFI bindings to the various @file{libwayland-*.so} libraries")
(description
"This package provides FFI bindings to the various
@file{libwayland-*.so} libraries. You should only need this crate if
you are working on custom Wayland protocol extensions. Look at the
crate @code{rust-wayland-client} for usable bindings.")
(license license:expat)))
(list wayland))))
(define-public rust-wayland-sys-0.23
(package