guix-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

44/330: gnu: Add rust-arboard-3.


From: guix-commits
Subject: 44/330: gnu: Add rust-arboard-3.
Date: Mon, 18 Mar 2024 07:15:05 -0400 (EDT)

efraim pushed a commit to branch rust-team
in repository guix.

commit 4b1b0d64c28fffefbec7dc7cc493873b0c5dffdb
Author: Efraim Flashner <efraim@flashner.co.il>
AuthorDate: Thu Mar 14 12:26:35 2024 +0200

    gnu: Add rust-arboard-3.
    
    * gnu/packages/crates-io.scm (rust-arboard-3): New variable.
    (rust-arboard-1): Inherit from rust-arboard-3.
    
    Change-Id: I03da0c5cc6f2f93ad16040883e13ea40524d4098
---
 gnu/packages/crates-io.scm | 42 +++++++++++++++++++++++++++++++++++-------
 1 file changed, 35 insertions(+), 7 deletions(-)

diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm
index 8320a316b5..a6db338c13 100644
--- a/gnu/packages/crates-io.scm
+++ b/gnu/packages/crates-io.scm
@@ -2062,8 +2062,42 @@ coverage-guided, mutation-based fuzzers.")
        #:cargo-inputs
        (("rust-derive-arbitrary" ,rust-derive-arbitrary-0.4))))))
 
+(define-public rust-arboard-3
+  (package
+    (name "rust-arboard")
+    (version "3.3.2")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (crate-uri "arboard" version))
+       (file-name (string-append name "-" version ".tar.gz"))
+       (sha256
+        (base32 "0n7s54yjbv3qksq2fivcdnvriplmzp8fd14dfrw7k7048cciy152"))))
+    (build-system cargo-build-system)
+    (arguments
+     `(#:tests? #f      ; tests require X11 $DISPLAY
+       #:cargo-inputs (("rust-clipboard-win" ,rust-clipboard-win-5)
+                       ("rust-core-graphics" ,rust-core-graphics-0.23)
+                       ("rust-image" ,rust-image-0.24)
+                       ("rust-log" ,rust-log-0.4)
+                       ("rust-objc" ,rust-objc-0.2)
+                       ("rust-objc-foundation" ,rust-objc-foundation-0.1)
+                       ("rust-objc-id" ,rust-objc-id-0.1)
+                       ("rust-parking-lot" ,rust-parking-lot-0.12)
+                       ("rust-thiserror" ,rust-thiserror-1)
+                       ("rust-windows-sys" ,rust-windows-sys-0.48)
+                       ("rust-wl-clipboard-rs" ,rust-wl-clipboard-rs-0.8)
+                       ("rust-x11rb" ,rust-x11rb-0.13))
+       #:cargo-development-inputs (("rust-env-logger" ,rust-env-logger-0.9))))
+    (home-page "https://github.com/1Password/arboard";)
+    (synopsis "Image and text handling for the OS clipboard")
+    (description
+     "This package provides image and text handling for the OS clipboard.")
+    (license (list license:expat license:asl2.0))))
+
 (define-public rust-arboard-1
   (package
+    (inherit rust-arboard-3)
     (name "rust-arboard")
     (version "1.2.1")
     (source
@@ -2073,7 +2107,6 @@ coverage-guided, mutation-based fuzzers.")
        (file-name (string-append name "-" version ".tar.gz"))
        (sha256
         (base32 "1a5qfmpzcf5rwlwsligf9z1gzndpvj0jncc4s3k3z5g214c4l127"))))
-    (build-system cargo-build-system)
     (arguments
      `(#:cargo-test-flags
        '("--release" "--"
@@ -2095,12 +2128,7 @@ coverage-guided, mutation-based fuzzers.")
         ("rust-x11rb" ,rust-x11rb-0.8))
        #:cargo-development-inputs
        (("rust-env-logger" ,rust-env-logger-0.8)
-        ("rust-simple-logger" ,rust-simple-logger-1))))
-    (home-page "https://github.com/ArturKovacs/arboard";)
-    (synopsis "Image and text handling for the OS clipboard")
-    (description
-     "This package provides image and text handling for the OS clipboard.")
-    (license (list license:expat license:asl2.0))))
+        ("rust-simple-logger" ,rust-simple-logger-1))))))
 
 (define-public rust-arc-swap-1
   (package



reply via email to

[Prev in Thread] Current Thread [Next in Thread]