summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn Soo <jsoo1@asu.edu>2019-12-13 21:05:36 -0800
committerEfraim Flashner <efraim@flashner.co.il>2020-01-02 20:16:04 +0200
commit2822a5830eb4f523dbf2018729ba8c498304bd5e (patch)
tree525ad5ca8ea9637a1a9fe73a37746699cc1fc199
parent70848cd06c932538bc876b8422a5e45ae3cfd722 (diff)
gnu: Add rust-bstr-0.1.
* gnu/packages/crates-io.scm (rust-bstr-0.1): New variable. Signed-off-by: Efraim Flashner <efraim@flashner.co.il>
-rw-r--r--gnu/packages/crates-io.scm34
1 files changed, 34 insertions, 0 deletions
diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm
index b4bb599dcc..ea2a6d8ec1 100644
--- a/gnu/packages/crates-io.scm
+++ b/gnu/packages/crates-io.scm
@@ -4,6 +4,7 @@
;;; Copyright © 2019 Nicolas Goaziou <mail@nicolasgoaziou.fr>
;;; Copyright © 2019 Giacomo Leidi <goodoldpaul@autistici.org>
;;; Copyright © 2019 Tobias Geerinckx-Rice <me@tobias.gr>
+;;; Copyright © 2019 John Soo <jsoo1@asu.edu>
;;;
;;; This file is part of GNU Guix.
;;;
@@ -244,6 +245,39 @@ behave like a set of bitflags.")
(license (list license:asl2.0
license:expat))))
+(define-public rust-bstr-0.1
+ (package
+ (name "rust-bstr")
+ (version "0.1.4")
+ (source
+ (origin
+ (method url-fetch)
+ (uri (crate-uri "bstr" version))
+ (file-name
+ (string-append name "-" version ".tar.gz"))
+ (sha256
+ (base32
+ "0nzi9vqhl56ws8gq39f3aj4qjrr4l3g5lbkkcj8xq1x4cb74wq2r"))))
+ (build-system cargo-build-system)
+ (arguments
+ `(#:skip-build? #t
+ #:cargo-inputs
+ (("rust-lazy-static" ,rust-lazy-static-1.3)
+ ("rust-memchr" ,rust-memchr-2.2)
+ ("rust-regex-automata" ,rust-regex-automata-0.1)
+ ("rust-serde" ,rust-serde-1.0))
+ #:cargo-development-inputs
+ (("rust-quickcheck" ,rust-quickcheck-0.8)
+ ("rust-ucd-parse" ,rust-ucd-parse-0.1)
+ ("rust-unicode-segmentation" ,rust-unicode-segmentation-1.3))))
+ (home-page "https://github.com/BurntSushi/bstr")
+ (synopsis
+ "String type that is not required to be valid UTF-8")
+ (description
+ "This package provides a string type that is not required to be valid
+UTF-8.")
+ (license (list license:expat license:asl2.0))))
+
(define-public rust-cargon-0.0
(package
(name "rust-cargon")