From 5e99e8e9dd9dbe08ac005022b3011e5a991bced8 Mon Sep 17 00:00:00 2001 From: Marius Bakke Date: Sun, 4 Dec 2022 16:53:34 +0100 Subject: [PATCH] gnu: rust-clap-lex: Add 0.3.0. * gnu/packages/crates-io.scm (rust-clap-lex-0.3): New variable. (rust-clap-lex-0.2): Inherit from it. --- gnu/packages/crates-io.scm | 33 +++++++++++++++++++++++++-------- 1 file changed, 25 insertions(+), 8 deletions(-) diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm index f7e2b3e807..087ca9e6e5 100644 --- a/gnu/packages/crates-io.scm +++ b/gnu/packages/crates-io.scm @@ -10845,8 +10845,32 @@ for programs written with Clap.") with Clap to generate Fig completion scripts.") (license (list license:expat license:asl2.0)))) +(define-public rust-clap-lex-0.3 + (package + (name "rust-clap-lex") + (version "0.3.0") + (source (origin + (method url-fetch) + (uri (crate-uri "clap_lex" version)) + (file-name (string-append name "-" version ".tar.gz")) + (sha256 + (base32 + "1a4dzbnlxiamfsn0pnkhn7n9bdfjh66j9fxm6mmr7d227vvrhh8d")))) + (build-system cargo-build-system) + (arguments + `(#:cargo-inputs (("rust-os-str-bytes" ,rust-os-str-bytes-6)))) + (home-page "https://github.com/clap-rs/clap/tree/master/clap_lex") + (synopsis "Command line parser for Clap") + (description + "This package provides a parser for command line options. As opposed +to a declarative parser, @code{rust-clap-lex} processes arguments as a +stream of tokens.") + ;; The user can choose either license. + (license (list license:expat license:asl2.0)))) + (define-public rust-clap-lex-0.2 (package + (inherit rust-clap-lex-0.3) (name "rust-clap-lex") (version "0.2.4") (source (origin @@ -10858,14 +10882,7 @@ with Clap to generate Fig completion scripts.") "1ib1a9v55ybnaws11l63az0jgz5xiy24jkdgsmyl7grcm3sz4l18")))) (build-system cargo-build-system) (arguments - (list #:cargo-inputs - `(("rust-os-str-bytes" ,rust-os-str-bytes-6)))) - (home-page "https://github.com/clap-rs/clap/tree/master/clap_lex") - (synopsis "Command line parser for Clap") - (description - "This package provides a parser for command line options. As opposed to a -declarative parser, @code{rust-clap-lex} processes arguments as a stream of tokens.") - (license (list license:expat license:asl2.0)))) + (list #:cargo-inputs `(("rust-os-str-bytes" ,rust-os-str-bytes-6)))))) (define-public rust-clearscreen-1 (package