Subject: [bug#69803] [PATCH rust-team 16/37] gnu: Add rust-wl-clipboard-rs-0.8.

From: Herman Rimm <[email-masked]>
Date: Thu, 14 Mar 2024 22:16:17 +0100

* gnu/packages/crates-io.scm (rust-wl-clipboard-rs-0.8): Add variable.
(rust-wl-clipboard-0.7): Inherit from rust-wl-clipboard-rs-0.8.

Change-Id: I72056854f1c9b0e1d0ca43ba5cbc12739128a8bb
---
 gnu/packages/crates-io.scm | 43 +++++++++++++++++++++++++++++++-------
 1 file changed, 36 insertions(+), 7 deletions(-)

diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm
index 82727e5e74..2cca202f57 100644
--- a/gnu/packages/crates-io.scm
+++ b/gnu/packages/crates-io.scm
@@ -78571,8 +78571,43 @@ (define-public rust-watchexec-1
 modifications.")
     (license license:asl2.0)))
 
+(define-public rust-wl-clipboard-rs-0.8
+  (package
+    (name "rust-wl-clipboard-rs")
+    (version "0.8.0")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (crate-uri "wl-clipboard-rs" version))
+       (file-name (string-append name "-" version ".tar.gz"))
+       (sha256
+        (base32 "1ynj4d5kaicjlm23i3mbarl7csrf753kiiqmf5i0ipzafglpkbsp"))))
+    (build-system cargo-build-system)
+    (arguments
+     `(#:skip-build? #t
+       #:cargo-inputs
+       (("rust-derive-new" ,rust-derive-new-0.5)
+        ("rust-libc" ,rust-libc-0.2)
+        ("rust-log" ,rust-log-0.4)
+        ("rust-nix" ,rust-nix-0.26)
+        ("rust-os-pipe" ,rust-os-pipe-1)
+        ("rust-tempfile" ,rust-tempfile-3)
+        ("rust-thiserror" ,rust-thiserror-1)
+        ("rust-tree-magic-mini" ,rust-tree-magic-mini-3)
+        ("rust-wayland-backend" ,rust-wayland-backend-0.3)
+        ("rust-wayland-client" ,rust-wayland-client-0.31)
+        ("rust-wayland-protocols" ,rust-wayland-protocols-0.31)
+        ("rust-wayland-protocols-wlr" ,rust-wayland-protocols-wlr-0.2))))
+    (home-page "https://github.com/YaLTeR/wl-clipboard-rs")
+    (synopsis "Access to the Wayland clipboard")
+    (description
+      "This package provides access to the Wayland clipboard for terminal
+and other window-less applications.")
+    (license (list license:expat license:asl2.0))))
+
 (define-public rust-wl-clipboard-rs-0.7
   (package
+    (inherit rust-wl-clipboard-rs-0.8)
     (name "rust-wl-clipboard-rs")
     (version "0.7.0")
     (source
@@ -78582,7 +78617,6 @@ (define-public rust-wl-clipboard-rs-0.7
        (file-name (string-append name "-" version ".tar.gz"))
        (sha256
         (base32 "1n8sg981h3d08hnnlrsgs81w2qz3n8a5ml0jcsgnapdpzcyk06lq"))))
-    (build-system cargo-build-system)
     (arguments
      `(#:tests? #f  ; Failed to create a server socket.
        #:cargo-inputs (("rust-derive-new" ,rust-derive-new-0.5)
@@ -78597,12 +78631,7 @@ (define-public rust-wl-clipboard-rs-0.7
                        ("rust-wayland-protocols" ,rust-wayland-protocols-0.29))
        #:cargo-development-inputs
        (("rust-wayland-protocols" ,rust-wayland-protocols-0.29)
-        ("rust-wayland-server" ,rust-wayland-server-0.29))))
-    (home-page "https://github.com/YaLTeR/wl-clipboard-rs")
-    (synopsis "Access to the Wayland clipboard")
-    (description "This package provides access to the Wayland clipboard
-for terminal and other window-less applications.")
-    (license (list license:expat license:asl2.0))))
+        ("rust-wayland-server" ,rust-wayland-server-0.29))))))
 
 (define-public rust-wl-clipboard-rs-0.4
   (package
-- 
2.41.0