guix-commits
[Top][All Lists]
Advanced

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

04/31: gnu: Add rust-ascii-canvas-3.


From: guix-commits
Subject: 04/31: gnu: Add rust-ascii-canvas-3.
Date: Sun, 31 Mar 2024 14:27:51 -0400 (EDT)

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

commit 79c2c047f7574bd393cdd7b81f59cad04ad40905
Author: Efraim Flashner <efraim@flashner.co.il>
AuthorDate: Sun Mar 31 16:53:00 2024 +0300

    gnu: Add rust-ascii-canvas-3.
    
    * gnu/packages/crates-graphics.scm (rust-ascii-canvas-3): New variable.
    (rust-ascii-canvas-2): Inherit from rust-ascii-canvas-3.
    
    Change-Id: I1fe83ce177ffb29ba1b909100dee0e0af85fe2c3
---
 gnu/packages/crates-graphics.scm | 27 +++++++++++++++++++++------
 1 file changed, 21 insertions(+), 6 deletions(-)

diff --git a/gnu/packages/crates-graphics.scm b/gnu/packages/crates-graphics.scm
index 8690608836..540cf23fd5 100644
--- a/gnu/packages/crates-graphics.scm
+++ b/gnu/packages/crates-graphics.scm
@@ -292,22 +292,21 @@ styles (bold, underline).")
     (description "This package provides FFI bindings to aom.")
     (license license:expat)))
 
-(define-public rust-ascii-canvas-2
+(define-public rust-ascii-canvas-3
   (package
     (name "rust-ascii-canvas")
-    (version "2.0.0")
+    (version "3.0.0")
     (source
      (origin
        (method url-fetch)
        (uri (crate-uri "ascii-canvas" version))
        (file-name (string-append name "-" version ".tar.gz"))
        (sha256
-        (base32 "0a9s8vrbc5jr6ry5ygjyfqmbs9gyya1v6dsxzsczpai8z4nvg3pz"))))
+        (base32 "1in38ziqn4kh9sw89ys4naaqzvvjscfs0m4djqbfq7455v5fq948"))))
     (build-system cargo-build-system)
     (arguments
-     `(#:skip-build? #t  ;; TODO: failes due to an unresolved import
-       #:cargo-inputs
-       (("rust-term" ,rust-term-0.5))))
+     `(#:cargo-inputs (("rust-term" ,rust-term-0.7))
+       #:cargo-development-inputs (("rust-diff" ,rust-diff-0.1))))
     (home-page "https://github.com/nikomatsakis/ascii-canvas";)
     (synopsis "Simple canvas for drawing lines and styled text and emitting to
 the terminal")
@@ -317,6 +316,22 @@ the term library to handle the ANSI nonsense and hence it 
works on Windows,
 Mac, and Unix.")
     (license (list license:asl2.0 license:expat))))
 
+(define-public rust-ascii-canvas-2
+  (package
+    (inherit rust-ascii-canvas-3)
+    (name "rust-ascii-canvas")
+    (version "2.0.0")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (crate-uri "ascii-canvas" version))
+       (file-name (string-append name "-" version ".tar.gz"))
+       (sha256
+        (base32 "0a9s8vrbc5jr6ry5ygjyfqmbs9gyya1v6dsxzsczpai8z4nvg3pz"))))
+    (arguments
+     `(#:skip-build? #t  ;; TODO: failes due to an unresolved import
+       #:cargo-inputs (("rust-term" ,rust-term-0.5))))))
+
 (define-public rust-ash-0.37
   (package
     (name "rust-ash")



reply via email to

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