From: Katherine Cox-Buday <cox.katherine.e@gmail.com>
To: 41689@debbugs.gnu.org
Subject: [bug#41689] Add cl-rdkafka
Date: Wed, 3 Jun 2020 09:36:04 -0500 [thread overview]
Message-ID: <CA+TvSRiU5ahybY06ZjEm8=b_JpQPBcft4Cvq_PhKJjEbsw5Axw@mail.gmail.com> (raw)
[-- Attachment #1: Type: text/plain, Size: 1 bytes --]
[-- Attachment #2: 0001-gnu-Add-cl-rdkafka.patch --]
[-- Type: text/x-patch, Size: 2539 bytes --]
From b8ff435def9372453d75067849da4541b6ec001b Mon Sep 17 00:00:00 2001
From: Katherine Cox-Buday <cox.katherine.e@gmail.com>
Date: Wed, 3 Jun 2020 09:33:57 -0500
Subject: [PATCH] gnu: Add cl-rdkafka.
* gnu/packages/lisp-xyz.scm (sbcl-cl-rdkafka, cl-rdkafka, ecl-rdkafka):
New variable.
---
gnu/packages/lisp-xyz.scm | 47 +++++++++++++++++++++++++++++++++++++++
1 file changed, 47 insertions(+)
diff --git a/gnu/packages/lisp-xyz.scm b/gnu/packages/lisp-xyz.scm
index b78eec7f4d..2472627c43 100644
--- a/gnu/packages/lisp-xyz.scm
+++ b/gnu/packages/lisp-xyz.scm
@@ -11555,3 +11555,50 @@ accompaniment to the standard ANSI facilities.")
(define-public cl-osicat
(sbcl-package->cl-source-package sbcl-osicat))
+
+(define-public sbcl-cl-rdkafka
+ (package
+ (name "sbcl-cl-rdkafka")
+ (version "1.0.2")
+ (source
+ (origin
+ (method git-fetch)
+ (uri (git-reference
+ (url "https://github.com/SahilKang/cl-rdkafka.git")
+ (commit (string-append "v" version))))
+ (file-name (git-file-name name version))
+ (sha256
+ (base32
+ "1qcgfd4h7syilzmrmd4z2vknbvawda3q3ykw7xm8n381syry4g82"))))
+ (build-system asdf-build-system/sbcl)
+ (arguments
+ `(#:tests? #f ; Attempts to connect to locally running Kafka
+ #:phases
+ (modify-phases %standard-phases
+ (add-after 'unpack 'fix-paths
+ (lambda* (#:key inputs #:allow-other-keys)
+ (substitute* "src/low-level/librdkafka-bindings.lisp"
+ (("librdkafka" all)
+ (string-append (assoc-ref inputs "librdkafka") "/lib/"
+ all))))))))
+ (inputs
+ `(("cffi" ,sbcl-cffi)
+ ("cffi" ,sbcl-cffi-grovel)
+ ("trivial-garbage" ,sbcl-trivial-garbage)
+ ("bordeaux-threads" ,sbcl-bordeaux-threads)
+ ;; Attempting to refer to the precompiled version gives:
+ ;; Error finding package for symbol "DECLARATION-INFORMATION":
+ ;; The name "SB-CLTL2" does not designate any package.
+ ("lparallel" ,cl-lparallel)))
+ (propagated-inputs
+ `(("librdkafka" ,librdkafka)))
+ (home-page "https://github.com/SahilKang/cl-rdkafka")
+ (synopsis "Common Lisp client library for Apache Kafka")
+ (description "A Common Lisp client library for Apache Kafka.")
+ (license license:gpl3)))
+
+(define-public cl-rdkafka
+ (sbcl-package->cl-source-package sbcl-cl-rdkafka))
+
+(define-public ecl-cl-rdkafka
+ (sbcl-package->ecl-package sbcl-cl-rdkafka))
--
2.26.2
next reply other threads:[~2020-06-03 14:37 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-06-03 14:36 Katherine Cox-Buday [this message]
2020-06-05 14:01 ` [bug#41689] Add cl-rdkafka Guillaume Le Vaillant
2020-06-06 16:24 ` Katherine Cox-Buday
2020-06-07 9:17 ` Guillaume Le Vaillant
2020-06-23 21:50 ` Ludovic Courtès
2020-06-23 22:26 ` Katherine Cox-Buday
2020-06-24 13:11 ` bug#41689: " Ludovic Courtès
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://guix.gnu.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='CA+TvSRiU5ahybY06ZjEm8=b_JpQPBcft4Cvq_PhKJjEbsw5Axw@mail.gmail.com' \
--to=cox.katherine.e@gmail.com \
--cc=41689@debbugs.gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).