guix-devel
[Top][All Lists]
Advanced

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

[PATCH 30/86] gnu: Add rust-getopts.


From: ng0
Subject: [PATCH 30/86] gnu: Add rust-getopts.
Date: Tue, 3 Jan 2017 23:35:46 +0000

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

diff --git a/gnu/packages/rust.scm b/gnu/packages/rust.scm
index e68c62dd8..0151e7b8d 100644
--- a/gnu/packages/rust.scm
+++ b/gnu/packages/rust.scm
@@ -906,3 +906,24 @@ at build time in order to be used in Cargo build scripts.")
      "This package provides a macro to evaluate, as a boolean,
 whether an expression matches a pattern.")
     (license license:expat)))
+
+(define-public rust-getopts
+  (package
+    (name "rust-getopts")
+    (version "0.2.14")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (crate-uri "getopts" version))
+       (file-name
+        (string-append name "-" version ".tar.gz"))
+       (sha256
+        (base32
+         "11fnh4awj227c85ax1sixbl5yb25c3qmxlv3nd870hwas3xpq16r"))))
+    (build-system cargo-build-system)
+    (native-inputs `(("rust-log" ,rust-log "src")))
+    (home-page "https://github.com/rust-lang/getopts";)
+    (synopsis "Getopts-like option parsing")
+    (description
+     "Getopts provides a Rust library for option parsing for CLI utilities.")
+    (license (list license:expat license:asl2.0))))
-- 
2.11.0




reply via email to

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