unofficial mirror of guix-patches@gnu.org 
 help / color / mirror / code / Atom feed
* [bug#55383] [PATCH 0/1] Add cl-lmdb
@ 2022-05-12  7:09 Arun Isaac
  2022-05-12  7:12 ` [bug#55383] [PATCH] gnu: " Arun Isaac
  0 siblings, 1 reply; 4+ messages in thread
From: Arun Isaac @ 2022-05-12  7:09 UTC (permalink / raw)
  To: 55383; +Cc: Arun Isaac

This patch adds cl-lmdb. But, lmdb does not build for ecl. So, I have omitted
ecl-lmdb. Is that ok?

Thanks!

Arun Isaac (1):
  gnu: Add cl-lmdb.

 gnu/packages/lisp-xyz.scm | 52 +++++++++++++++++++++++++++++++++++++++
 1 file changed, 52 insertions(+)

-- 
2.36.0





^ permalink raw reply	[flat|nested] 4+ messages in thread

* [bug#55383] [PATCH] gnu: Add cl-lmdb.
  2022-05-12  7:09 [bug#55383] [PATCH 0/1] Add cl-lmdb Arun Isaac
@ 2022-05-12  7:12 ` Arun Isaac
  2022-05-13 15:34   ` Guillaume Le Vaillant
  0 siblings, 1 reply; 4+ messages in thread
From: Arun Isaac @ 2022-05-12  7:12 UTC (permalink / raw)
  To: 55383; +Cc: Arun Isaac

* gnu/packages/lisp-xyz.scm (sbcl-lmdb, cl-lmdb): New variables.
---
 gnu/packages/lisp-xyz.scm | 52 +++++++++++++++++++++++++++++++++++++++
 1 file changed, 52 insertions(+)

diff --git a/gnu/packages/lisp-xyz.scm b/gnu/packages/lisp-xyz.scm
index ab264923c3..33b3957464 100644
--- a/gnu/packages/lisp-xyz.scm
+++ b/gnu/packages/lisp-xyz.scm
@@ -34,6 +34,7 @@
 ;;; Copyright © 2022 Jai Vetrivelan <jaivetrivelan@gmail.com>
 ;;; Copyright © 2022 Paul A. Patience <paul@apatience.com>
 ;;; Copyright © 2022 Thomas Albers Raviola <thomas@thomaslabs.org>
+;;; Copyright © 2022 Arun Isaac <arunisaac@systemreboot.net>
 ;;;
 ;;; This file is part of GNU Guix.
 ;;;
@@ -57,6 +58,7 @@
 
 (define-module (gnu packages lisp-xyz)
   #:use-module (gnu packages)
+  #:use-module (guix gexp)
   #:use-module ((guix licenses) #:prefix license:)
   #:use-module (guix packages)
   #:use-module (guix download)
@@ -21269,3 +21271,53 @@ (define-public cl-formgrep
 
 (define-public ecl-formgrep
   (sbcl-package->ecl-package sbcl-formgrep))
+
+(define-public sbcl-lmdb
+  (let ((commit "f439b707939a52769dc9747838ff4a616fab14a3")
+        (revision "0"))
+    (package
+      (name "sbcl-lmdb")
+      (version (git-version "0.1" revision commit))
+      (source
+       (origin
+         (method git-fetch)
+         (uri (git-reference
+               (url "https://github.com/antimer/lmdb")
+               (commit commit)))
+         (file-name (git-file-name "cl-lmdb" version))
+         (sha256
+          (base32 "0akvimmvd4kcx6gh1j1dzvcclhc0jc4hc9vkh3ldgzb8wyf4vl8q"))))
+      (build-system asdf-build-system/sbcl)
+      (arguments
+       (list
+        #:phases
+        #~(modify-phases %standard-phases
+            (add-after 'unpack 'fix-paths
+              (lambda* (#:key inputs #:allow-other-keys)
+                (substitute* "src/lmdb.lisp"
+                  (("\"liblmdb.so\"")
+                   (string-append
+                    "\"" (search-input-file inputs "/lib/liblmdb.so") "\""))))))))
+      (inputs
+       (list lmdb
+             sbcl-alexandria
+             sbcl-bordeaux-threads
+             sbcl-cl-reexport
+             sbcl-mgl-pax
+             sbcl-osicat
+             sbcl-trivial-garbage
+             sbcl-trivial-utf-8))
+      (native-inputs
+       (list sbcl-try))
+      (home-page "https://github.com/antimer/lmdb")
+      (synopsis "LMDB bindings for Common Lisp")
+      (description
+       "LMDB, the Lightning Memory-mapped Database, is an ACID key-value
+database with multiversion concurrency control.  This package is a Common Lisp
+wrapper around the C LMDB library.  It covers most of C LMDB's functionality,
+has a simplified API, much needed safety checks, and comprehensive
+documentation.")
+      (license license:expat))))
+
+(define-public cl-lmdb
+  (sbcl-package->cl-source-package sbcl-lmdb))
-- 
2.36.0





^ permalink raw reply related	[flat|nested] 4+ messages in thread

* [bug#55383] [PATCH] gnu: Add cl-lmdb.
  2022-05-12  7:12 ` [bug#55383] [PATCH] gnu: " Arun Isaac
@ 2022-05-13 15:34   ` Guillaume Le Vaillant
  2022-05-16  8:35     ` bug#55383: " Arun Isaac
  0 siblings, 1 reply; 4+ messages in thread
From: Guillaume Le Vaillant @ 2022-05-13 15:34 UTC (permalink / raw)
  To: Arun Isaac; +Cc: 55383

[-- Attachment #1: Type: text/plain, Size: 781 bytes --]


Hi,

Arun Isaac <arunisaac@systemreboot.net> skribis:

> This patch adds cl-lmdb. But, lmdb does not build for ecl. So, I have omitted
> ecl-lmdb. Is that ok?

Yes.


> * gnu/packages/lisp-xyz.scm (sbcl-lmdb, cl-lmdb): New variables.
> ---
>  gnu/packages/lisp-xyz.scm | 52 +++++++++++++++++++++++++++++++++++++++
>  1 file changed, 52 insertions(+)
>
> [...]
> +      (inputs
> +       (list lmdb
> +             sbcl-alexandria
> +             sbcl-bordeaux-threads
> +             sbcl-cl-reexport
> +             sbcl-mgl-pax
> +             sbcl-osicat
> +             sbcl-trivial-garbage
> +             sbcl-trivial-utf-8))
> [...]

The sbcl-trivial-features package should be added to the inputs, as it
is listed in the asd file. Otherwise, LGTM, you can push the patch.

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 247 bytes --]

^ permalink raw reply	[flat|nested] 4+ messages in thread

* bug#55383: [PATCH] gnu: Add cl-lmdb.
  2022-05-13 15:34   ` Guillaume Le Vaillant
@ 2022-05-16  8:35     ` Arun Isaac
  0 siblings, 0 replies; 4+ messages in thread
From: Arun Isaac @ 2022-05-16  8:35 UTC (permalink / raw)
  To: Guillaume Le Vaillant; +Cc: 55383-done


Hi Guillaume,

> The sbcl-trivial-features package should be added to the inputs, as it
> is listed in the asd file. Otherwise, LGTM, you can push the patch.

I added sbcl-trivial-features and pushed the patch.

Thank you!




^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2022-05-16  8:36 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-05-12  7:09 [bug#55383] [PATCH 0/1] Add cl-lmdb Arun Isaac
2022-05-12  7:12 ` [bug#55383] [PATCH] gnu: " Arun Isaac
2022-05-13 15:34   ` Guillaume Le Vaillant
2022-05-16  8:35     ` bug#55383: " Arun Isaac

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/guix.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).