From: jgart via Guix-patches via <guix-patches@gnu.org>
To: 57621@debbugs.gnu.org
Cc: jgart <jgart@dismail.de>
Subject: [bug#57621] [PATCH 2/2] gnu: Add cl-positional-lambda.
Date: Tue, 6 Sep 2022 08:25:53 -0500 [thread overview]
Message-ID: <20220906132553.9993-2-jgart@dismail.de> (raw)
In-Reply-To: <20220906132553.9993-1-jgart@dismail.de>
* gnu/packages/lisp-xyz.scm (cl-positional-lambda): New variable.
---
gnu/packages/lisp-xyz.scm | 39 +++++++++++++++++++++++++++++++++++++++
1 file changed, 39 insertions(+)
diff --git a/gnu/packages/lisp-xyz.scm b/gnu/packages/lisp-xyz.scm
index 597df27384..7b9ef7bf49 100644
--- a/gnu/packages/lisp-xyz.scm
+++ b/gnu/packages/lisp-xyz.scm
@@ -182,6 +182,45 @@ (define-public cl-map-bind
(define-public ecl-cl-map-bind
(sbcl-package->ecl-package sbcl-map-bind))
+(define-public sbcl-positional-lambda
+ (let ((commit "a43a7bb4ef6faa277e6a7440ec9839711c4b9d28")
+ (revision "0"))
+ (package
+ (name "sbcl-positional-lambda")
+ (version (git-version "0.0.0" revision commit))
+ (source
+ (origin
+ (method git-fetch)
+ (uri (git-reference
+ (url "https://github.com/Hexstream/positional-lambda")
+ (commit commit)))
+ (file-name (git-file-name name version))
+ (sha256
+ (base32 "1l27mw5ciqz7rnjq1lwslgk220i8iqcr39rs8b7hxkp1yqmah5zq"))))
+ (build-system asdf-build-system/sbcl)
+ (arguments
+ `(#:asd-systems '("positional-lambda" "positional-lambda_tests")))
+ (native-inputs
+ (list sbcl-parachute))
+ (inputs
+ (list sbcl-map-bind))
+ (home-page "https://www.hexstreamsoft.com/libraries/positional-lambda/")
+ (synopsis "Macro favouring positional references over naming")
+ (description
+"This package provides a concise, intuitive and flexible macro for trivial
+lambdas that eschews explicit naming of parameter variables in favor of
+positional references, with support for a used or ignored &rest parameter
+and automatic declaration of ignored parameters when logical @code{gaps}
+are left in the positional references. Further convenience features
+are provided.")
+ (license license:unlicense))))
+
+(define-public cl-positional-lambda
+ (sbcl-package->cl-source-package sbcl-positional-lambda))
+
+(define-public ecl-cl-positional-lambda
+ (sbcl-package->ecl-package sbcl-positional-lambda))
+
(define-public sbcl-bodge-utilities
(let ((commit "6304bac4abe06d53579e2c0fc4437d14ff077d9f")
(revision "1"))
--
2.37.2
next prev parent reply other threads:[~2022-09-06 14:19 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-09-06 13:23 [bug#57621] [PATCH] gnu: Add cl-positional-lambda jgart via Guix-patches via
2022-09-06 13:25 ` [bug#57621] [PATCH 1/2] gnu: Add cl-map-bind jgart via Guix-patches via
2022-09-06 13:25 ` jgart via Guix-patches via [this message]
2022-09-07 12:39 ` bug#57621: [PATCH] gnu: Add cl-positional-lambda Guillaume Le Vaillant
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20220906132553.9993-2-jgart@dismail.de \
--to=guix-patches@gnu.org \
--cc=57621@debbugs.gnu.org \
--cc=jgart@dismail.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/guix.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.