unofficial mirror of guix-patches@gnu.org 
 help / color / mirror / code / Atom feed
* [bug#68360] [PATCH v2] gnu: Add cl-command-line-args
@ 2024-01-10  0:44 Charles via Guix-patches via
  2024-01-12 14:47 ` Guillaume Le Vaillant
  0 siblings, 1 reply; 4+ messages in thread
From: Charles via Guix-patches via @ 2024-01-10  0:44 UTC (permalink / raw)
  To: 68360
  Cc: Charles, Guillaume Le Vaillant, Katherine Cox-Buday,
	Munyoki Kilyungi, jgart

* 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(+)

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





^ permalink raw reply related	[flat|nested] 4+ messages in thread

* [bug#68360] [PATCH v2] gnu: Add cl-command-line-args
  2024-01-10  0:44 [bug#68360] [PATCH v2] gnu: Add cl-command-line-args Charles via Guix-patches via
@ 2024-01-12 14:47 ` Guillaume Le Vaillant
  2024-01-12 17:35   ` Charles via Guix-patches via
  0 siblings, 1 reply; 4+ messages in thread
From: Guillaume Le Vaillant @ 2024-01-12 14:47 UTC (permalink / raw)
  To: Charles; +Cc: Munyoki Kilyungi, jgart, Katherine Cox-Buday, 68360

[-- Attachment #1: Type: text/plain, Size: 593 bytes --]

Charles <charles@charje.net> skribis:

> * 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?

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 247 bytes --]

^ permalink raw reply	[flat|nested] 4+ messages in thread

* [bug#68360] [PATCH v2] gnu: Add cl-command-line-args
  2024-01-12 14:47 ` Guillaume Le Vaillant
@ 2024-01-12 17:35   ` Charles via Guix-patches via
  2024-01-13 13:06     ` bug#68360: " Guillaume Le Vaillant
  0 siblings, 1 reply; 4+ messages in thread
From: Charles via Guix-patches via @ 2024-01-12 17:35 UTC (permalink / raw)
  To: 68360

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.




^ permalink raw reply	[flat|nested] 4+ messages in thread

* bug#68360: [PATCH v2] gnu: Add cl-command-line-args
  2024-01-12 17:35   ` Charles via Guix-patches via
@ 2024-01-13 13:06     ` Guillaume Le Vaillant
  0 siblings, 0 replies; 4+ messages in thread
From: Guillaume Le Vaillant @ 2024-01-13 13:06 UTC (permalink / raw)
  To: Charles; +Cc: 68360-done

[-- Attachment #1: Type: text/plain, Size: 100 bytes --]

I was able to fetch the sources. Patch applied as
f7f608d3b408e64e1fdcec5f6254e1aa534a64a1.
Thanks.

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 247 bytes --]

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2024-01-13 13:08 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-01-10  0:44 [bug#68360] [PATCH v2] gnu: Add cl-command-line-args Charles via Guix-patches via
2024-01-12 14:47 ` Guillaume Le Vaillant
2024-01-12 17:35   ` Charles via Guix-patches via
2024-01-13 13:06     ` bug#68360: " Guillaume Le Vaillant

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/guix.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).