guix-devel
[Top][All Lists]
Advanced

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

[PATCH 55/86] gnu: Add rust-docopt.


From: ng0
Subject: [PATCH 55/86] gnu: Add rust-docopt.
Date: Tue, 3 Jan 2017 23:36:11 +0000

* gnu/packages/rust.scm (rust-docopt): New variable.
---
 gnu/packages/rust.scm | 27 +++++++++++++++++++++++++++
 1 file changed, 27 insertions(+)

diff --git a/gnu/packages/rust.scm b/gnu/packages/rust.scm
index 1b2352b9e..36ae31579 100644
--- a/gnu/packages/rust.scm
+++ b/gnu/packages/rust.scm
@@ -1516,3 +1516,30 @@ Koen Claessen's QuickCheck for Haskell.")
     (description
      "@code{memmap} provides a cross-platform Rust API for memory-mapped file 
IO.")
     (license (list license:expat license:asl2.0))))
+
+(define-public rust-docopt
+  (package
+    (name "rust-docopt")
+    (version "0.6.86")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (crate-uri "docopt" version))
+       (file-name
+        (string-append name "-" version ".tar.gz"))
+       (sha256
+        (base32
+         "1nf4f4zf5yk0d0l4kl7hkii4na22fhn0l2hgfb46yzv08l2g6zja"))))
+    (build-system cargo-build-system)
+    (inputs
+     `(("rust-lazy-static" ,rust-lazy-static "src")
+       ("rust-rustc-serialize" ,rust-rustc-serialize "src")
+       ;; TODO: ("rust-regex" ,rust-regex "src")
+       ("rust-strsim" ,rust-strsim "src")))
+    (home-page "https://github.com/docopt/docopt.rs";)
+    (synopsis "Command line argument parsing")
+    (description
+     "Docopt for Rust with automatic type based decoding (in other words:
+data validation).  This implementation conforms to the official
+description of Docopt.")
+    (license (list license:unlicense license:expat))))
-- 
2.11.0




reply via email to

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