guix-commits
[Top][All Lists]
Advanced

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

04/85: gnu: Add rust-ascii-canvas-2.


From: guix-commits
Subject: 04/85: gnu: Add rust-ascii-canvas-2.
Date: Tue, 5 May 2020 07:56:13 -0400 (EDT)

htgoebel pushed a commit to branch master
in repository guix.

commit 85ab6fd85339b7ea934d822d5f5d08453afceb35
Author: Hartmut Goebel <address@hidden>
AuthorDate: Sun Mar 8 12:06:07 2020 +0100

    gnu: Add rust-ascii-canvas-2.
    
    * gnu/packages/crates-io.scm (rust-ascii-canvas-2): New variable.
---
 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 1e4ccb7..8c7649f 100644
--- a/gnu/packages/crates-io.scm
+++ b/gnu/packages/crates-io.scm
@@ -5,6 +5,7 @@
 ;;; Copyright © 2019 Giacomo Leidi <address@hidden>
 ;;; Copyright © 2019 Tobias Geerinckx-Rice <address@hidden>
 ;;; Copyright © 2019, 2020 John Soo <address@hidden>
+;;; Copyright © 2019, 2020 Hartmut Goebel <address@hidden>
 ;;; Copyright © 2020 Jakub Kądziołka <address@hidden>
 ;;; Copyright © 2020 Leo Famulari <address@hidden>
 ;;;
@@ -847,6 +848,31 @@ standard library.")
         ("rust-serde" ,rust-serde-1.0)
         ("rust-serde-test" ,rust-serde-test-1.0))))))
 
+(define-public rust-ascii-canvas-2
+  (package
+    (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"))))
+    (build-system cargo-build-system)
+    (arguments
+     `(#:skip-build? #t  ;; TODO: failes due to an unresolved import
+       #:cargo-inputs
+       (("rust-term" ,rust-term-0.5))))
+    (home-page "https://github.com/nikomatsakis/ascii-canvas";)
+    (synopsis "Simple canvas for drawing lines and styled text and emitting to
+the terminal")
+    (description "@code{ASCII} canvas is a simple Rust library that allows you
+to draw lines and colored text and then write them to the terminal.  It uses
+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-assert-matches-1.3
   (package
     (name "rust-assert-matches")



reply via email to

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