Subject: [bug#75372] [PATCH 39/44] gnu: Add rust-clipboard-0.5.

From: Divya Ranjan <[email-masked]>
Date: Sun, 5 Jan 2025 07:04:15 +0000

* gnu/packages/crates-io.scm (rust-clipboard-0.5): New variable.

Change-Id: I80ddcd2855a819ec4382ed2f02036483a68a6263
---
 gnu/packages/crates-io.scm | 26 ++++++++++++++++++++++++++
 1 file changed, 26 insertions(+)

diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm
index 062f25bd72..d59af92042 100644
--- a/gnu/packages/crates-io.scm
+++ b/gnu/packages/crates-io.scm
@@ -13255,6 +13255,32 @@ (define-public rust-clicolors-control-1
 colorization.")
     (license license:expat)))
 
+(define-public rust-clipboard-0.5
+  (package
+    (name "rust-clipboard")
+    (version "0.5.0")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (crate-uri "clipboard" version))
+       (file-name (string-append name "-" version ".tar.gz"))
+       (sha256
+        (base32 "1rxjfn811h09g6jpjjs2vx7z52wj6dxnflbwryfj6h03dij09a95"))))
+    (build-system cargo-build-system)
+    (arguments
+     `(#:cargo-inputs (("rust-clipboard-win" ,rust-clipboard-win-2)
+                       ("rust-objc" ,rust-objc-0.2)
+                       ("rust-objc-foundation" ,rust-objc-foundation-0.1)
+                       ("rust-objc-id" ,rust-objc-id-0.1)
+                       ("rust-x11-clipboard" ,rust-x11-clipboard-0.3))))
+    (home-page "https://github.com/aweinstock314/rust-clipboard")
+    (synopsis
+     "rust-clipboard is a cross-platform library for getting and setting the contents of the OS-level clipboard")
+    (description
+     "This package provides rust-clipboard is a cross-platform library for getting and setting the contents
+of the OS-level clipboard.")
+    (license (list license:expat license:asl2.0))))
+
 (define-public rust-clipboard-win-2
   (package
     (name "rust-clipboard-win")
-- 
2.47.1