summary refs log tree commit diff
diff options
context:
space:
mode:
authorNicolas Goaziou <mail@nicolasgoaziou.fr>2021-02-11 00:14:20 +0100
committerNicolas Goaziou <mail@nicolasgoaziou.fr>2021-02-13 11:50:57 +0100
commit28c2c01a2aeeb12a156699c7c87439488576ae12 (patch)
tree32e0cc13f8b3fb5e1733614863d29d923ae0ee50
parent574efee9b3b5faaf6acc06679b895e06a61d34a9 (diff)
downloadguix-28c2c01a2aeeb12a156699c7c87439488576ae12.tar.gz
gnu: Add rust-nu-source-0.26.
* gnu/packages/shells.scm (rust-nu-source-0.26): New variable.
-rw-r--r--gnu/packages/shells.scm30
1 files changed, 30 insertions, 0 deletions
diff --git a/gnu/packages/shells.scm b/gnu/packages/shells.scm
index 59547ba2c7..b71cc5ec11 100644
--- a/gnu/packages/shells.scm
+++ b/gnu/packages/shells.scm
@@ -16,6 +16,7 @@
 ;;; Copyright © 2020 Brice Waegeneire <brice@waegenei.re>
 ;;; Copyright © 2020 Ryan Prior <rprior@protonmail.com>
 ;;; Copyright © 2020 Efraim Flashner <efraim@flashner.co.il>
+;;; Copyright © 2021 Nicolas Goaziou <mail@nicolasgoaziou.fr>
 ;;;
 ;;; This file is part of GNU Guix.
 ;;;
@@ -38,6 +39,8 @@
   #:use-module (gnu packages base)
   #:use-module (gnu packages bash)
   #:use-module (gnu packages bison)
+  #:use-module (gnu packages crates-graphics)
+  #:use-module (gnu packages crates-io)
   #:use-module (gnu packages documentation)
   #:use-module (gnu packages groff)
   #:use-module (gnu packages guile)
@@ -52,6 +55,7 @@
   #:use-module (gnu packages python-xyz)
   #:use-module (gnu packages readline)
   #:use-module (gnu packages scheme)
+  #:use-module (guix build-system cargo)
   #:use-module (guix build-system cmake)
   #:use-module (guix build-system gnu)
   #:use-module (guix build-system python)
@@ -926,3 +930,29 @@ Underpinning these utilities are many Scheme interfaces for manipulating
 files and text.")
     (license gpl3+)))
 
+(define-public rust-nu-source-0.26
+  (package
+    (name "rust-nu-source")
+    (version "0.26.0")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (crate-uri "nu-source" version))
+       (file-name (string-append name "-" version ".tar.gz"))
+       (sha256
+        (base32 "1sdmasal3qqcp8fjpqncppc81m0984bp528lb9zggipbxzjpvb3i"))))
+    (build-system cargo-build-system)
+    (arguments
+     `(#:skip-build? #t
+       #:cargo-inputs
+       (("rust-derive-new" ,rust-derive-new-0.5)
+        ("rust-getset" ,rust-getset-0.1)
+        ("rust-pretty" ,rust-pretty-0.5)
+        ("rust-serde" ,rust-serde-1)
+        ("rust-termcolor" ,rust-termcolor-1))))
+    (home-page "https://www.nushell.sh")
+    (synopsis "Source string characterizer for Nushell")
+    (description
+     "This package provides a source string characterizer for
+Nushell.")
+    (license expat)))