From 521128f6d4445d3a924e47f26516a6a97b402223 Mon Sep 17 00:00:00 2001 From: Charles Date: Sat, 26 Jun 2021 09:53:07 -0500 Subject: [PATCH] gnu: Add cl-trivial-with-current-source-form. * gnu/packages/lisp-xyz.scm (sbcl-trivial-with-current-source-form): Add new variable. * gnu/packages/lisp-xyz.scm (ecl-trivial-with-current-source-form): Add new variable. * gnu/packages/lisp-xyz.scm (cl-trivial-with-current-source-form): Add new variable. --- gnu/packages/lisp-xyz.scm | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) diff --git a/gnu/packages/lisp-xyz.scm b/gnu/packages/lisp-xyz.scm index ef5e445d7d..93a7d6fa95 100644 --- a/gnu/packages/lisp-xyz.scm +++ b/gnu/packages/lisp-xyz.scm @@ -17538,3 +17538,38 @@ Memory transactions give freedom from deadlocks, are immune to thread-safety bugs and race conditions, provide automatic roll-back on failure, and aim at resolving the tension between granularity and concurrency.") (license license:llgpl)))) + +(define-public sbcl-trivial-with-current-source-form + (let ((commit "9e343e043a77a5478c1f77bb626db22335fbbfb8") + (revision "1")) + (package + (name "sbcl-trivial-with-current-source-form") + (version (git-version "0.1.0" revision commit)) + (source + (origin + (method git-fetch) + (uri (git-reference + (url + "https://github.com/scymtym/trivial-with-current-source-form") + (commit commit))) + (file-name (git-file-name name version)) + (sha256 + (base32 "15zs7mc422ycp1cvcxmirif1dq15mlmv8vzd6l6nzn4qgmph9wz0")))) + (build-system asdf-build-system/sbcl) + (inputs + `(("sbcl-alexandria" ,sbcl-alexandria))) + (home-page "https://github.com/scymtym/trivial-with-current-source-form") + (synopsis "Helps Common Lisp macro writers produce better errors for macro users") + (description "This library allows macro writers to provide better feedback +to macro users when errors are signaled during macroexpansion. It uses the +compiler's concept of a source-form to report where the error or warning is located.") + (license license:llgpl)))) + +(define-public ecl-trivial-with-current-source-form + ;; Trivial-with-current-source-form does not give any benefits on ECL. + ;; This package is so packages dependent on trivial-with-current-source-form + ;; can be loaded on ECL. + (sbcl-package->ecl-package sbcl-trivial-with-current-source-form)) + +(define-public cl-trivial-with-current-source-form + (sbcl-package->cl-source-package sbcl-trivial-with-current-source-form)) -- 2.32.0