* 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