diff mbox series

[bug#51189,v2] gnu: Add cl-charms

Message ID PU1PR01MB215577876A559421A4C8A0B78DB89@PU1PR01MB2155.apcprd01.prod.exchangelabs.com
State New
Headers show
Series [bug#51189,v2] gnu: Add cl-charms | expand

Checks

Context Check Description
cbaines/comparison success View comparision
cbaines/git branch success View Git branch
cbaines/applying patch success View Laminar job
cbaines/issue success View issue

Commit Message

Foo Chuan Wei Oct. 14, 2021, 12:29 p.m. UTC
* gnu/packages/lisp-xyz.scm (cl-charms, ecl-cl-charms, sbcl-cl-charms):
  New variables.
---
 gnu/packages/lisp-xyz.scm | 42 +++++++++++++++++++++++++++++++++++++++
 1 file changed, 42 insertions(+)


base-commit: 5fafb6e792c1e18ec223f0c7fb350d0c9b962a45

Comments

Guillaume Le Vaillant Oct. 15, 2021, 9:24 a.m. UTC | #1
Patch pushed as 8d048c5eba57c4993434ec89367d9e09a2e79209.
Thanks.
diff mbox series

Patch

diff --git a/gnu/packages/lisp-xyz.scm b/gnu/packages/lisp-xyz.scm
index 29d79e481e..a45e23c2a1 100644
--- a/gnu/packages/lisp-xyz.scm
+++ b/gnu/packages/lisp-xyz.scm
@@ -19072,3 +19072,45 @@  libyaml.")
 
 (define-public ecl-cl-yaml
   (sbcl-package->ecl-package sbcl-cl-yaml))
+
+(define-public sbcl-cl-charms
+  (let ((commit "64aba59d89f85bc5c9402e445873965338a66a02")
+        (revision "1"))
+    (package
+      (name "sbcl-charms")
+      (version (git-version "0.0.0" revision commit))
+      (source (origin
+                (method git-fetch)
+                (uri (git-reference
+                       (url "https://github.com/HiTECNOLOGYs/cl-charms")
+                       (commit commit)))
+                (file-name (git-file-name "cl-charms" version))
+                (sha256
+                  (base32
+                    "1jczaypa9dhxr34yyhsxb6lrdnircjx8am4iqkc3shfpjn32q323"))))
+      (build-system asdf-build-system/sbcl)
+      (inputs `(("alexandria" ,sbcl-alexandria)
+                ("cffi" ,sbcl-cffi)
+                ("ncurses" ,ncurses)))
+      (arguments '(#:asd-systems '("cl-charms")
+                   #:phases
+                   (modify-phases %standard-phases
+                     (add-after 'unpack 'fix-paths
+                       (lambda* (#:key inputs #:allow-other-keys)
+                         (substitute* "src/low-level/curses-bindings.lisp"
+                           (("libncursesw.so")
+                            (string-append (assoc-ref inputs "ncurses")
+                                           "/lib/libncursesw.so"))))))))
+      (home-page "https://github.com/HiTECNOLOGYs/cl-charms")
+      (synopsis "An interface to libcurses in Common Lisp")
+      (description
+        "cl-charms is an interface to libcurses in Common Lisp. It provides
+both a raw, low-level interface to libcurses via CFFI, and a more higher-level
+lispier interface.")
+      (license license:expat))))
+
+(define-public cl-charms
+  (sbcl-package->cl-source-package sbcl-cl-charms))
+
+(define-public ecl-cl-charms
+  (sbcl-package->ecl-package sbcl-cl-charms))