[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
05/13: gnu: Add exit-hooks.
From: |
guix-commits |
Subject: |
05/13: gnu: Add exit-hooks. |
Date: |
Tue, 16 Nov 2021 06:52:21 -0500 (EST) |
ambrevar pushed a commit to branch master
in repository guix.
commit 6366aaf7cc2aeab57c9ee0eb8757170f7d10c6a6
Author: Pierre Neidhardt <mail@ambrevar.xyz>
AuthorDate: Mon Nov 15 20:04:52 2021 +0100
gnu: Add exit-hooks.
* gnu/packages/lisp-xyz.scm (cl-exit-hooks, ecl-exit-hooks,
sbcl-exit-hooks):
New variables.
---
gnu/packages/lisp-xyz.scm | 34 ++++++++++++++++++++++++++++++++++
1 file changed, 34 insertions(+)
diff --git a/gnu/packages/lisp-xyz.scm b/gnu/packages/lisp-xyz.scm
index bba167f..721f615 100644
--- a/gnu/packages/lisp-xyz.scm
+++ b/gnu/packages/lisp-xyz.scm
@@ -18895,3 +18895,37 @@ information is taken from
@url{https://publicsuffix.org}.")
(define-public ecl-cl-strftime
(sbcl-package->ecl-package sbcl-cl-strftime))
+
+(define-public sbcl-exit-hooks
+ ;; No release.
+ (let ((commit "78050f4f55c138fcea86a9d720928782021b6012"))
+ (package
+ (name "sbcl-exit-hooks")
+ (version (git-version "0.0.0" "1" commit))
+ (source
+ (origin
+ (method git-fetch)
+ (uri (git-reference
+ (url "https://github.com/ailisp/exit-hooks/")
+ (commit commit)))
+ (file-name (git-file-name name version))
+ (sha256
+ (base32 "00rk0pr2cy3hy6giblh166b7yrg06d5lanipjcqv508gkfb0vi47"))))
+ (build-system asdf-build-system/sbcl)
+ (home-page "https://github.com/ailisp/exit-hooks")
+ (synopsis "Call functions automatically when Common Lisp exits")
+ (description
+ "@code{exit-hooks} provides a portable way to automatically call some
+user-defined function when exiting Common Lisp (both @code{quit} from the REPL
+or a kill in a shell). Like @code{atexit} in C and Python or Java’s
+@code{Runtime.addShutdownHook()}. It currently supports SBCL, CCL, ECL, ABCL,
+Allegro CL, clisp and CMUCL. Before exit-hooks, there was no portable way of
+doing so and no staightforward way to use an exit hook on ABCL. It can be used
+for tasks like parmenantly save something when exiting Lisp.")
+ (license license:bsd-2))))
+
+(define-public cl-exit-hooks
+ (sbcl-package->cl-source-package sbcl-exit-hooks))
+
+(define-public ecl-exit-hooks
+ (sbcl-package->ecl-package sbcl-exit-hooks))
- branch master updated (1223960 -> e31d48d), guix-commits, 2021/11/16
- 01/13: gnu: sbcl-cmd: Update to 20211009., guix-commits, 2021/11/16
- 04/13: gnu: Add cl-strftime., guix-commits, 2021/11/16
- 02/13: gnu: sbcl-cl-webkit: Update to 3.2.0., guix-commits, 2021/11/16
- 03/13: gnu: Add sbcl-cl-tld., guix-commits, 2021/11/16
- 06/13: gnu: Add cl-base58., guix-commits, 2021/11/16
- 05/13: gnu: Add exit-hooks.,
guix-commits <=
- 08/13: gnu: Add cxml-rng., guix-commits, 2021/11/16
- 12/13: gnu: Add vernacular., guix-commits, 2021/11/16
- 07/13: gnu: Add bit-smasher., guix-commits, 2021/11/16
- 09/13: gnu: Add overlord., guix-commits, 2021/11/16
- 10/13: gnu: Add xpath., guix-commits, 2021/11/16
- 11/13: gnu: Add fxml., guix-commits, 2021/11/16
- 13/13: gnu: Add cl-https-everywhere., guix-commits, 2021/11/16