diff mbox series

[bug#73329,6/7] gnu: Add rust-clap-derive-4.3.

Message ID 0bcd8302b92b91a268714459d687f68ae176da6a.1726623493.git.lockbox@struct.foo
State New
Headers show
Series Add lsd utility | expand

Commit Message

Jordan Moore Sept. 18, 2024, 11:05 a.m. UTC
* gnu/packages/crates-io.scm (rust-clap-derive-4.3): New variable.
* gnu/packages/crates-io.scm (rust-clap-builder-4.3): New variable.
* gnu/packages/crates-io.scm (rust-clap-4.3): New variable.

Change-Id: I951e20182868f71c05cf95d84807099ac6a3ca36
---
 gnu/packages/crates-io.scm | 80 ++++++++++++++++++++++++++++++++++++++
 1 file changed, 80 insertions(+)
diff mbox series

Patch

diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm
index b8131647ca..87636074a4 100644
--- a/gnu/packages/crates-io.scm
+++ b/gnu/packages/crates-io.scm
@@ -12991,6 +12991,86 @@  (define-public rust-clap-derive-3
              ("rust-quote" ,rust-quote-1)
              ("rust-syn" ,rust-syn-1))))))
 
+(define-public rust-clap-derive-4.3
+  (package
+    (name "rust-clap-derive")
+    (version "4.3.12")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (crate-uri "clap_derive" version))
+       (file-name (string-append name "-" version ".tar.gz"))
+       (sha256
+        (base32 "0l50j37jwbzfl29bd2a1ib7z1jpch4b9868himrgwpgwb1bvpaal"))))
+    (build-system cargo-build-system)
+    (arguments
+     `(#:skip-build? #t
+       #:cargo-inputs (("rust-heck" ,rust-heck-0.4)
+                             ("rust-proc-macro2" ,rust-proc-macro2-1)
+                             ("rust-quote" ,rust-quote-1)
+                             ("rust-syn" ,rust-syn-2))))
+    (home-page "https://github.com/clap-rs/clap")
+    (synopsis "Parse command line argument by defining a struct, derive crate")
+    (description
+     "This package provides Parse command line argument by defining a struct, derive crate.")
+    (license (list license:expat license:asl2.0))))
+
+(define-public rust-clap-builder-4.3
+  (package
+    (name "rust-clap-builder")
+    (version "4.3.24")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (crate-uri "clap_builder" version))
+       (file-name (string-append name "-" version ".tar.gz"))
+       (sha256
+        (base32 "03l6d45csywv8xazs44jwy1hk2jbvznn7mj8dw7p93bdq5mykljy"))))
+    (build-system cargo-build-system)
+    (arguments
+     `(#:skip-build? #t
+       #:cargo-inputs (("rust-anstream" ,rust-anstream-0.3)
+                             ("rust-anstyle" ,rust-anstyle-1)
+                             ("rust-backtrace" ,rust-backtrace-0.3)
+                             ("rust-clap-lex" ,rust-clap-lex-0.5)
+                             ("rust-once-cell" ,rust-once-cell-1)
+                             ("rust-strsim" ,rust-strsim-0.10)
+                             ("rust-terminal-size" ,rust-terminal-size-0.2)
+                             ("rust-unicase" ,rust-unicase-2)
+                             ("rust-unicode-width" ,rust-unicode-width-0.1.13))))
+    (home-page "https://github.com/clap-rs/clap")
+    (synopsis
+     "simple to use, efficient, and full-featured Command Line Argument Parser")
+    (description
+     "This package provides a simple to use, efficient, and full-featured Command Line
+Argument Parser.")
+    (license (list license:expat license:asl2.0))))
+
+(define-public rust-clap-4.3
+  (package
+    (name "rust-clap")
+    (version "4.3.24")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (crate-uri "clap" version))
+       (file-name (string-append name "-" version ".tar.gz"))
+       (sha256
+        (base32 "11z4695sw0kp1s4rfnfdgg19n6xllcp297z5mmx0s344qy0hwsgv"))))
+    (build-system cargo-build-system)
+    (arguments
+     `(#:skip-build? #t
+       #:cargo-inputs (("rust-clap-builder" ,rust-clap-builder-4.3)
+                             ("rust-clap-derive" ,rust-clap-derive-4.3)
+                             ("rust-once-cell" ,rust-once-cell-1))))
+    (home-page "https://github.com/clap-rs/clap")
+    (synopsis
+     "simple to use, efficient, and full-featured Command Line Argument Parser")
+    (description
+     "This package provides a simple to use, efficient, and full-featured Command Line
+Argument Parser.")
+    (license (list license:expat license:asl2.0))))
+
 (define-public rust-clap-4
   (package
     (name "rust-clap")