[PATCH v2] gnu: Add cl-command-line-args

  • Done
  • quality assurance status badge
Details
2 participants
  • Charles
  • Guillaume Le Vaillant
Owner
unassigned
Submitted by
Charles
Severity
normal
C
C
Charles wrote on 10 Jan 01:44 +0100
(address . guix-patches@gnu.org)(name . Charles)(address . charles@charje.net)
7fc637b85cb74a8d4b68d7731951754eb00412e4.1704847499.git.charles@charje.net
* gnu/packages/lisp-xyz.scm (cl-command-line-args, ecl-command-line-args,
sbcl-command-line-args): New variables.

Change-Id: I6a829e6934b93c58a9c2a3673bb553d1e2132007
---
I remembered that I need to run guix lint, so I fixed those issues.

gnu/packages/lisp-xyz.scm | 36 ++++++++++++++++++++++++++++++++++++
1 file changed, 36 insertions(+)

Toggle diff (51 lines)
diff --git a/gnu/packages/lisp-xyz.scm b/gnu/packages/lisp-xyz.scm
index aa3ea7c9ce..f5c45b8d44 100644
--- a/gnu/packages/lisp-xyz.scm
+++ b/gnu/packages/lisp-xyz.scm
@@ -1067,6 +1067,42 @@ (define-public cl-clingon
(define-public ecl-clingon
(sbcl-package->ecl-package sbcl-clingon))
+(define-public sbcl-command-line-args
+ (package
+ (name "sbcl-command-line-args")
+ (version "0.0.0")
+ (source
+ (origin
+ (method git-fetch)
+ (uri (git-reference
+ (url "https://git.sr.ht/~whereiseveryone/command-line-args")
+ (commit (string-append "v" version))))
+ (file-name (git-file-name name version))
+ (sha256
+ (base32 "01p52zxr1b49c15ichlc3zadd1mrmwxzria53j949ayl2j6k8w1b"))))
+ (build-system asdf-build-system/sbcl)
+ (arguments
+ '(#:asd-systems '("whereiseveryone.command-line-args")))
+ (inputs
+ (list sbcl-alexandria
+ sbcl-serapeum
+ sbcl-cl-str
+ sbcl-trivia))
+ (home-page "https://git.sr.ht/~whereiseveryone/command-line-args")
+ (synopsis "Automatically create a CLI parser for a given Common Lisp function definition")
+ (description "Command-Line-Args provides a main macro (@code{command})
+that wraps a @code{defun} form and creates a new function that parses the
+command line arguments. It has support for command-line options, positoinal,
+and variadic arguments. It also generates a basic help message. The
+interface is meant to be easy and non-intrusive.")
+ (license license:agpl3+)))
+
+(define-public cl-command-line-args
+ (sbcl-package->cl-source-package sbcl-command-line-args))
+
+(define-public ecl-command-line-args
+ (sbcl-package->ecl-package sbcl-command-line-args))
+
(define-public sbcl-cl-irc
(let ((commit "963823537c7bfcda2edd4c44d172192da6722175")
(revision "0"))

base-commit: 3de361d9c9d320aefbd43710124d7b07af891de1
--
2.41.0
G
G
Guillaume Le Vaillant wrote on 12 Jan 15:47 +0100
(name . Charles)(address . charles@charje.net)
8734v2d2n1.fsf@kitej
Charles <charles@charje.net> skribis:

Toggle quote (15 lines)
> * gnu/packages/lisp-xyz.scm (cl-command-line-args, ecl-command-line-args,
> sbcl-command-line-args): New variables.
>
> [...]
>
> +(define-public sbcl-command-line-args
> + (package
> + (name "sbcl-command-line-args")
> + (version "0.0.0")
> + (source
> + (origin
> + (method git-fetch)
> + (uri (git-reference
> + (url "https://git.sr.ht/~whereiseveryone/command-line-args")

Hi.
I tried applying this patch, but I can't download the sources. I get
a timeout error when connecting to sr.ht.
Does it work for you?
-----BEGIN PGP SIGNATURE-----

iIUEAREKAC0WIQTLxZxm7Ce5cXlAaz5r6CCK3yH+PwUCZaFSYg8cZ2x2QHBvc3Rl
by5uZXQACgkQa+ggit8h/j9izgD/RtIVJRRGCvLXwvo1jEM5ZZpm1sZPnGQelA5N
yRzSbzoA/0H6M/eJd5rbsm/VQpdgGbJY62Kn9tw/qa20kSRht+Ny
=hQhu
-----END PGP SIGNATURE-----

C
C
Charles wrote on 12 Jan 18:35 +0100
(address . 68360@debbugs.gnu.org)
7D71F9B7-0D56-4FE0-9124-2DB1F9A5E52B@charje.net
Hello. Thank you for taking a look at my patch.

The source is hosted on git.st.ht (source hut) which is currently experiencing a ddos attack. This patch will have to wait until that is resolved or the source is moved. Either way I can send another email here to let you know.
G
G
Guillaume Le Vaillant wrote on 13 Jan 14:06 +0100
(name . Charles)(address . charles@charje.net)(address . 68360-done@debbugs.gnu.org)
87mst92xgw.fsf@kitej
I was able to fetch the sources. Patch applied as
f7f608d3b408e64e1fdcec5f6254e1aa534a64a1.
Thanks.
-----BEGIN PGP SIGNATURE-----

iIUEAREKAC0WIQTLxZxm7Ce5cXlAaz5r6CCK3yH+PwUCZaKLDw8cZ2x2QHBvc3Rl
by5uZXQACgkQa+ggit8h/j+6swEAmpuT4RHFenO2ltFLcUoHLkoBIDItoRExoNgQ
Ew5KqbMA/1tEiSUPtIl5gtZMgxhe/yk+wEWzaZvchJ5xq1YRmKJt
=nQJj
-----END PGP SIGNATURE-----

Closed
?
Your comment

This issue is archived.

To comment on this conversation send an email to 68360@debbugs.gnu.org

To respond to this issue using the mumi CLI, first switch to it
mumi current 68360
Then, you may apply the latest patchset in this issue (with sign off)
mumi am -- -s
Or, compose a reply to this issue
mumi compose
Or, send patches to this issue
mumi send-email *.patch