From patchwork Thu May 12 07:12:24 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Arun Isaac X-Patchwork-Id: 39227 Return-Path: X-Original-To: patchwork@mira.cbaines.net Delivered-To: patchwork@mira.cbaines.net Received: by mira.cbaines.net (Postfix, from userid 113) id DCDA427BBEA; Thu, 12 May 2022 08:13:29 +0100 (BST) X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-2.7 required=5.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,MAILING_LIST_MULTI,SPF_HELO_PASS,URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.6 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mira.cbaines.net (Postfix) with ESMTPS id 9C14A27BBE9 for ; Thu, 12 May 2022 08:13:29 +0100 (BST) Received: from localhost ([::1]:37532 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1np30q-00072w-Oj for patchwork@mira.cbaines.net; Thu, 12 May 2022 03:13:28 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:41386) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1np30Q-0006zN-Re for guix-patches@gnu.org; Thu, 12 May 2022 03:13:02 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:45461) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1np30Q-0002i0-HL for guix-patches@gnu.org; Thu, 12 May 2022 03:13:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1np30Q-0001RN-D0 for guix-patches@gnu.org; Thu, 12 May 2022 03:13:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#55383] [PATCH] gnu: Add cl-lmdb. References: <20220512070908.10346-1-arunisaac@systemreboot.net> In-Reply-To: <20220512070908.10346-1-arunisaac@systemreboot.net> Resent-From: Arun Isaac Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Thu, 12 May 2022 07:13:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 55383 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 55383@debbugs.gnu.org Cc: Arun Isaac Received: via spool by 55383-submit@debbugs.gnu.org id=B55383.16523395555494 (code B ref 55383); Thu, 12 May 2022 07:13:02 +0000 Received: (at 55383) by debbugs.gnu.org; 12 May 2022 07:12:35 +0000 Received: from localhost ([127.0.0.1]:39358 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1np2zz-0001QX-BD for submit@debbugs.gnu.org; Thu, 12 May 2022 03:12:35 -0400 Received: from mugam.systemreboot.net ([139.59.75.54]:44112) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1np2zx-0001QN-7O for 55383@debbugs.gnu.org; Thu, 12 May 2022 03:12:34 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=systemreboot.net; s=default; h=Content-Transfer-Encoding:Content-Type: MIME-Version:Message-Id:Date:Subject:Cc:To:From:Sender:Reply-To:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:In-Reply-To:References:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=+qNM3H3qKmWwVe9BM8bJcId8uDjkpNZm+tPM75utm0s=; b=iDmcMzEfCwgM6dAm9/Qw96jLAg rf0MQRFuthe3B6AWZSVlb6wPNwTmb9p8iebLhtP9ohQjYClrM3kVEauqFouGzZEChS1SyZ76baJRn 7kZnRx/n7M0dHEKonieZnQNlLqfzxA6a8zJDE4hKC4bbap+W+tk1potRDbaPF1FxDTG4ccvsH6BsR 3jEpJHa9mCwW8K10qGL3V/7T4Pqd/wq6ke86h4kDXZExfyZzH+DrkhbGi6Up3AJy5D5w28fDcajDX tsPHXDRBXHdxASEbS2v8A9bXmwuA9vbNOfuZY0scIk92T94n0dCib2NXkz3EGAp3odgulDwXRFOyo //YvpTpg==; Received: from [192.168.2.1] (port=54638 helo=localhost.localdomain) by systemreboot.net with esmtpsa (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.95) (envelope-from ) id 1np2zu-000Hfe-SA; Thu, 12 May 2022 12:42:31 +0530 From: Arun Isaac Date: Thu, 12 May 2022 12:42:24 +0530 Message-Id: <20220512071224.11231-1-arunisaac@systemreboot.net> X-Mailer: git-send-email 2.36.0 MIME-Version: 1.0 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org Sender: "Guix-patches" X-getmail-retrieved-from-mailbox: Patches * 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 ;;; Copyright © 2022 Paul A. Patience ;;; Copyright © 2022 Thomas Albers Raviola +;;; Copyright © 2022 Arun Isaac ;;; ;;; 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))