From mboxrd@z Thu Jan 1 00:00:00 1970 From: =?UTF-8?q?=E5=AE=8B=E6=96=87=E6=AD=A6?= Subject: [PATCH 1/4] gnu: Add librdkafka. Date: Tue, 7 Jun 2016 21:56:55 +0800 Message-ID: <1465307818-12006-1-git-send-email-iyzsong@gmail.com> Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:41789) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bAHVP-0005Rr-BC for guix-devel@gnu.org; Tue, 07 Jun 2016 09:57:20 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bAHVM-0000Lv-4V for guix-devel@gnu.org; Tue, 07 Jun 2016 09:57:19 -0400 Received: from mail.openmailbox.org ([62.4.1.34]:58022) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bAHVL-0000LX-UL for guix-devel@gnu.org; Tue, 07 Jun 2016 09:57:16 -0400 List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org Sender: "Guix-devel" To: guix-devel@gnu.org Cc: =?UTF-8?q?=E5=AE=8B=E6=96=87=E6=AD=A6?= * gnu/packages/networking.scm (librdkafka): New variable. --- gnu/packages/networking.scm | 37 +++++++++++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) diff --git a/gnu/packages/networking.scm b/gnu/packages/networking.scm index ba8023a..d0062a6 100644 --- a/gnu/packages/networking.scm +++ b/gnu/packages/networking.scm @@ -149,6 +149,43 @@ filtering (subscriptions), seamless access to multiple transport protocols and more.") (license license:lgpl3+))) +(define-public librdkafka + (package + (name "librdkafka") + (version "0.9.1") + (source (origin + (method url-fetch) + (uri (string-append + "https://github.com/edenhill/librdkafka/archive/" + version ".tar.gz")) + (file-name (string-append name "-" version ".tar.gz")) + (sha256 + (base32 + "10ldx7g7ymmg17snzx78vy4n8ma1rjx0agzi34g15j2fk867xmas")))) + (build-system gnu-build-system) + (arguments + '(#:phases + (modify-phases %standard-phases + (replace 'configure + ;; its custom configure script doesn't understand 'CONFIG_SHELL'. + (lambda* (#:key outputs #:allow-other-keys) + (let ((out (assoc-ref outputs "out"))) + ;; librdkafka++.so lacks RUNPATH for librdkafka.so + (setenv "LDFLAGS" + (string-append "-Wl,-rpath=" out "/lib")) + (zero? (system* "./configure" + (string-append "--prefix=" out))))))))) + (native-inputs + `(("python" ,python-wrapper))) + (propagated-inputs + `(("zlib" ,zlib))) ; in the Libs.private field of rdkafka.pc + (home-page "https://github.com/edenhill/librdkafka") + (synopsis "Apache Kafka C/C++ client library") + (description + "librdkafka is a C library implementation of the Apache Kafka protocol, +containing both Producer and Consumer support.") + (license license:bsd-2))) + (define-public libndp (package (name "libndp") -- 2.6.3