guix-commits
[Top][All Lists]
Advanced

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

408/471: gnu: Add rust-copypasta-0.8.


From: guix-commits
Subject: 408/471: gnu: Add rust-copypasta-0.8.
Date: Wed, 3 May 2023 09:29:06 -0400 (EDT)

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

commit c22d3485bca3c46084a80bef744f7e6134aeeac3
Author: Efraim Flashner <efraim@flashner.co.il>
AuthorDate: Mon Apr 24 11:27:35 2023 +0300

    gnu: Add rust-copypasta-0.8.
    
    * gnu/packages/crates-io.scm (rust-copypasta-0.8): New variable.
    (rust-copypasta-0.7): Inherit from rust-copypasta-0.8.
---
 gnu/packages/crates-io.scm | 37 +++++++++++++++++++++++++++++--------
 1 file changed, 29 insertions(+), 8 deletions(-)

diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm
index 9c1b6229e1..819f538213 100644
--- a/gnu/packages/crates-io.scm
+++ b/gnu/packages/crates-io.scm
@@ -13628,8 +13628,36 @@ similar to the nom parser combinators library.")
 the standard library.")
     (license (list license:expat license:asl2.0))))
 
+(define-public rust-copypasta-0.8
+  (package
+    (name "rust-copypasta")
+    (version "0.8.2")
+    (source (origin
+              (method url-fetch)
+              (uri (crate-uri "copypasta" version))
+              (file-name (string-append name "-" version ".tar.gz"))
+              (sha256
+               (base32
+                "0wmidz38581b1xzpzf466pdaw3xam7nlsn0klndfr973brkwhgqk"))))
+    (build-system cargo-build-system)
+    (arguments
+     `(#:cargo-inputs
+       (("rust-clipboard-win" ,rust-clipboard-win-3)
+        ("rust-objc" ,rust-objc-0.2)
+        ("rust-objc-foundation" ,rust-objc-foundation-0.1)
+        ("rust-objc-id" ,rust-objc-id-0.1)
+        ("rust-smithay-clipboard" ,rust-smithay-clipboard-0.6)
+        ("rust-x11-clipboard" ,rust-x11-clipboard-0.7))))
+    (home-page "https://github.com/alacritty/copypasta";)
+    (synopsis "Get and set the contents of the OS-level clipboard")
+    (description
+     "Copypasta 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-copypasta-0.7
   (package
+    (inherit rust-copypasta-0.8)
     (name "rust-copypasta")
     (version "0.7.1")
     (source
@@ -13639,7 +13667,6 @@ the standard library.")
        (file-name (string-append name "-" version ".tar.gz"))
        (sha256
         (base32 "02zz6yndszmzr5yjhn11g1hsj0232jbzl8gch6mxksw3xngxf8s4"))))
-    (build-system cargo-build-system)
     (arguments
      `(#:skip-build? #t
        #:cargo-inputs
@@ -13648,13 +13675,7 @@ the standard library.")
         ("rust-objc-foundation" ,rust-objc-foundation-0.1)
         ("rust-objc-id" ,rust-objc-id-0.1)
         ("rust-smithay-clipboard" ,rust-smithay-clipboard-0.6)
-        ("rust-x11-clipboard" ,rust-x11-clipboard-0.5))))
-    (home-page "https://github.com/alacritty/copypasta";)
-    (synopsis "Get and set the contents of the OS-level clipboard")
-    (description
-     "Copypasta is a cross-platform library for getting and setting the
-contents of the OS-level clipboard.")
-    (license (list license:expat license:asl2.0))))
+        ("rust-x11-clipboard" ,rust-x11-clipboard-0.5))))))
 
 (define-public rust-cordic-0.1
   (package



reply via email to

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