aboutsummaryrefslogtreecommitdiff
path: root/gnu/packages
diff options
context:
space:
mode:
Diffstat (limited to 'gnu/packages')
-rw-r--r--gnu/packages/crates-graphics.scm46
1 files changed, 39 insertions, 7 deletions
diff --git a/gnu/packages/crates-graphics.scm b/gnu/packages/crates-graphics.scm
index 5d82c68f81..7fc4697964 100644
--- a/gnu/packages/crates-graphics.scm
+++ b/gnu/packages/crates-graphics.scm
@@ -3104,24 +3104,25 @@ the wayland protocol, server side.")
("rust-wayland-sys" ,rust-wayland-sys-0.21)
("rust-wayland-scanner" ,rust-wayland-scanner-0.21))))))
-(define-public rust-wayland-sys-0.29
+(define-public rust-wayland-sys-0.30
(package
(name "rust-wayland-sys")
- (version "0.29.4")
+ (version "0.30.1")
(source
(origin
(method url-fetch)
(uri (crate-uri "wayland-sys" version))
(file-name (string-append name "-" version ".tar.gz"))
(sha256
- (base32 "1m2jwk5q36jidwbdmdicmi27r9dzi4wanzg3i28nfxc9kbvisd6r"))))
+ (base32 "01man4ll2kyxp9x2934rhnf98522pzwsd2c6jwr73q08qqma1cln"))))
(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-log" ,rust-log-0.4)
+ ("rust-memoffset" ,rust-memoffset-0.7)
("rust-pkg-config" ,rust-pkg-config-0.3))
#:phases
(modify-phases %standard-phases
@@ -3132,9 +3133,6 @@ the wayland protocol, server side.")
(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")
@@ -3146,6 +3144,40 @@ 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.29
+ (package
+ (inherit rust-wayland-sys-0.30)
+ (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"))))
+ (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))))
+
(define-public rust-wayland-sys-0.28
(package
(inherit rust-wayland-sys-0.29)