guix-commits
[Top][All Lists]
Advanced

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

134/135: gnu: Add rust-annotate-snippets-0.10.


From: guix-commits
Subject: 134/135: gnu: Add rust-annotate-snippets-0.10.
Date: Wed, 27 Mar 2024 04:55:12 -0400 (EDT)

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

commit d090429db84329b85163898b44cc134faeface17
Author: Efraim Flashner <efraim@flashner.co.il>
AuthorDate: Wed Mar 27 10:36:02 2024 +0200

    gnu: Add rust-annotate-snippets-0.10.
    
    * gnu/packages/crates-io.scm (rust-annotate-snippets-0.10): New
    variable.
    (rust-annotate-snippets-0.9): Inherit from rust-annotate-snippets-0.10.
    
    Change-Id: I828bf0ea3101eabcc15f29aa8a5c416d9002f019
---
 gnu/packages/crates-io.scm | 33 +++++++++++++++++++++++++++------
 1 file changed, 27 insertions(+), 6 deletions(-)

diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm
index c7dcd35399..b76aa54384 100644
--- a/gnu/packages/crates-io.scm
+++ b/gnu/packages/crates-io.scm
@@ -1636,8 +1636,34 @@ it outputs messages to Android's logcat.")
     ;; The user can choose either license.
     (license (list license:expat license:asl2.0))))
 
+(define-public rust-annotate-snippets-0.10
+  (package
+    (name "rust-annotate-snippets")
+    (version "0.10.2")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (crate-uri "annotate-snippets" version))
+       (file-name (string-append name "-" version ".tar.gz"))
+       (sha256
+        (base32 "1rmzxhi079d6j67x1dyv3sjkrc13x6av513cn27pwjl8i5bnd6vd"))))
+    (build-system cargo-build-system)
+    (arguments
+     `(#:cargo-inputs (("rust-anstyle" ,rust-anstyle-1)
+                       ("rust-unicode-width" ,rust-unicode-width-0.1))
+       #:cargo-development-inputs (("rust-criterion" ,rust-criterion-0.5)
+                                   ("rust-difference" ,rust-difference-2)
+                                   ("rust-glob" ,rust-glob-0.3)
+                                   ("rust-serde" ,rust-serde-1)
+                                   ("rust-toml" ,rust-toml-0.5))))
+    (home-page "https://github.com/rust-lang/annotate-snippets-rs";)
+    (synopsis "Library for building code annotations")
+    (description "Library for building code annotations.")
+    (license (list license:asl2.0 license:expat))))
+
 (define-public rust-annotate-snippets-0.9
   (package
+    (inherit rust-annotate-snippets-0.10)
     (name "rust-annotate-snippets")
     (version "0.9.2")
     (source
@@ -1647,7 +1673,6 @@ it outputs messages to Android's logcat.")
        (file-name (string-append name "-" version ".tar.gz"))
        (sha256
         (base32 "07p8r6jzb7nqydq0kr5pllckqcdxlyld2g275v425axnzffpxbyc"))))
-    (build-system cargo-build-system)
     (arguments
      `(#:cargo-inputs (("rust-unicode-width" ,rust-unicode-width-0.1)
                        ("rust-yansi-term" ,rust-yansi-term-0.1))
@@ -1656,11 +1681,7 @@ it outputs messages to Android's logcat.")
                                    ("rust-glob" ,rust-glob-0.3)
                                    ("rust-serde" ,rust-serde-1)
                                    ("rust-toml" ,rust-toml-0.5)
-                                   ("rust-yansi-term" ,rust-yansi-term-0.1))))
-    (home-page "https://github.com/rust-lang/annotate-snippets-rs";)
-    (synopsis "Library for building code annotations")
-    (description "Library for building code annotations.")
-    (license (list license:asl2.0 license:expat))))
+                                   ("rust-yansi-term" 
,rust-yansi-term-0.1))))))
 
 (define-public rust-ansi-parser-0.8
   (package



reply via email to

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