[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
17/29: gnu: Add slot-extra-options.
From: |
guix-commits |
Subject: |
17/29: gnu: Add slot-extra-options. |
Date: |
Thu, 30 Jun 2022 14:02:15 -0400 (EDT) |
ambrevar pushed a commit to branch master
in repository guix.
commit 3c509d98eddeb205636a5f8c88ac83b08e43934a
Author: Pierre Neidhardt <mail@ambrevar.xyz>
AuthorDate: Thu Jun 30 17:47:10 2022 +0200
gnu: Add slot-extra-options.
* gnu/packages/lisp-xyz.scm (cl-slot-extra-options, ecl-slot-extra-options,
sbcl-slot-extra-options): New variables.
---
gnu/packages/lisp-xyz.scm | 42 ++++++++++++++++++++++++++++++++++++++++++
1 file changed, 42 insertions(+)
diff --git a/gnu/packages/lisp-xyz.scm b/gnu/packages/lisp-xyz.scm
index 940925174a..6edbbeb7be 100644
--- a/gnu/packages/lisp-xyz.scm
+++ b/gnu/packages/lisp-xyz.scm
@@ -22040,3 +22040,45 @@ to dispatch on the basis of types rather than
classes.")
(define-public ecl-polymorphic-functions
(sbcl-package->ecl-package sbcl-polymorphic-functions))
+
+(define-public sbcl-slot-extra-options
+ (let ((commit "29517d980325cd63744f1acf4cfe5c8ccec2b318"))
+ (package
+ (name "sbcl-slot-extra-options")
+ (version (git-version "1.1.1" "1" commit))
+ (source
+ (origin
+ (method git-fetch)
+ (uri (git-reference
+ (url "https://github.com/some-mthfka/slot-extra-options/")
+ (commit commit)))
+ (file-name (git-file-name "cl-slot-extra-options" version))
+ (sha256
+ (base32 "1b2swhjjs0w1034cy045q8l3ndmci7rjawka39q23vncy6d90497"))))
+ (build-system asdf-build-system/sbcl)
+ (inputs
+ (list sbcl-alexandria
+ sbcl-closer-mop
+ sbcl-serapeum
+ sbcl-iterate))
+ (native-inputs
+ (list sbcl-parachute))
+ (home-page "https://github.com/some-mthfka/slot-extra-options/")
+ (synopsis "Extra options for slots using MOP")
+ (description
+ "This library lets you build a metaclass which in turn lets you specify
+extra slot options in its classes. Options may be easily inspected and custom
+inheritence may be set up. The Meta-Object Protocol (MOP) is used for the
+implementation - through @code{closer-mop}. Some convenience function for
+processing slot options are also available.
+
+Possible use case: you want to automatically set up some definitions based on
+some slots, but you want to have control over it right in the class
+definition.")
+ (license license:lgpl3+))))
+
+(define-public cl-slot-extra-options
+ (sbcl-package->cl-source-package sbcl-slot-extra-options))
+
+(define-public ecl-slot-extra-options
+ (sbcl-package->ecl-package sbcl-slot-extra-options))
- 24/29: gnu: Add glkit., (continued)
- 24/29: gnu: Add glkit., guix-commits, 2022/06/30
- 01/29: gnu: Add utils-kt., guix-commits, 2022/06/30
- 02/29: gnu: Add cells., guix-commits, 2022/06/30
- 12/29: gnu: Add fast-generic-functions., guix-commits, 2022/06/30
- 14/29: gnu: Add ctype., guix-commits, 2022/06/30
- 25/29: gnu: Add cl-trees., guix-commits, 2022/06/30
- 22/29: gnu: Add mathkit., guix-commits, 2022/06/30
- 26/29: gnu: Add cl-geometry., guix-commits, 2022/06/30
- 28/29: gnu: Add cl-sdl2-ttf., guix-commits, 2022/06/30
- 29/29: gnu: Add sketch., guix-commits, 2022/06/30
- 17/29: gnu: Add slot-extra-options.,
guix-commits <=
- 03/29: gnu: Add cl-algebraic-data-type., guix-commits, 2022/06/30
- 16/29: gnu: sbcl-parachute: Update to 20210920., guix-commits, 2022/06/30
- 13/29: gnu: Add compiler-macro-notes., guix-commits, 2022/06/30
- 11/29: gnu: Add sealable-metaobjects., guix-commits, 2022/06/30
- 15/29: gnu: Add polymorphic-functions., guix-commits, 2022/06/30
- 20/29: gnu: sbcl: Enable sb-gmp, sb-mpfr and install shared library., guix-commits, 2022/06/30
- 21/29: gnu: Add sb-cga., guix-commits, 2022/06/30
- 23/29: gnu: Add sdl2kit., guix-commits, 2022/06/30
- 27/29: gnu: Add cl-sdl2-image., guix-commits, 2022/06/30