From: Dion Mendel <guix@dm9.info>
To: 48773@debbugs.gnu.org
Subject: [bug#48773] [PATCH] gnu: Add libdqlite.
Date: Tue, 1 Jun 2021 14:03:23 +0800 [thread overview]
Message-ID: <20210601060323.GA27513@dm9.info> (raw)
* gnu/packages/cluster.scm (libdqlite): New Variable.
---
gnu/packages/cluster.scm | 41 ++++++++++++++++++++++++++++++++++++++++
1 file changed, 41 insertions(+)
diff --git a/gnu/packages/cluster.scm b/gnu/packages/cluster.scm
index 18f2707469..8421af5140 100644
--- a/gnu/packages/cluster.scm
+++ b/gnu/packages/cluster.scm
@@ -3,6 +3,7 @@
;;; Copyright © 2018, 2020 Tobias Geerinckx-Rice <me@tobias.gr>
;;; Copyright © 2019 Andrew Miloradovsky <andrew@interpretmath.pw>
;;; Copyright © 2020 Marius Bakke <marius@gnu.org>
+;;; Copyright © 2021 Dion Mendel <guix@dm9.info>
;;;
;;; This file is part of GNU Guix.
;;;
@@ -33,6 +34,7 @@
#:use-module (gnu packages linux)
#:use-module (gnu packages pkg-config)
#:use-module (gnu packages sphinx)
+ #:use-module (gnu packages sqlite)
#:use-module (gnu packages texinfo)
#:use-module (gnu packages tls))
@@ -220,3 +222,42 @@ that, a pluggable interface defines the I/O implementation for networking
(send/receive RPC messages) and disk persistence (store log entries and
snapshots).")
(license license:asl2.0)))
+
+(define-public libdqlite
+ (package
+ (name "libdqlite")
+ (version "1.7.0")
+ (home-page "https://github.com/canonical/dqlite")
+ (source (origin
+ (method git-fetch)
+ (uri (git-reference (url home-page)
+ (commit (string-append "v" version))))
+ (file-name (git-file-name name version))
+ (sha256
+ (base32
+ "15cg8yl3n7lcg0qyg0byciz8v6y200ghmzzkwpdzggy3m6c168wl"))))
+ (arguments
+ '(#:phases
+ (modify-phases %standard-phases
+ (add-after 'unpack 'disable-failing-tests
+ (lambda _
+ (substitute* "Makefile.am"
+ ;; Test client/query sometimes fails.
+ ;; The actual tested asserts succeed, but there appears to be a
+ ;; race condition when tearing down the test server.
+ ((".*test_client.c.*") "")))))))
+ (native-inputs
+ `(("autoconf" ,autoconf)
+ ("automake" ,automake)
+ ("libtool" ,libtool)
+ ("pkg-config" ,pkg-config)))
+ (inputs
+ `(("libraft" ,libraft)
+ ("libuv" ,libuv)))
+ (propagated-inputs
+ `(("sqlite" ,sqlite))) ; dqlite.h includes sqlite3.h
+ (build-system gnu-build-system)
+ (synopsis "Distributed SQLite")
+ (description "dqlite is a C library that implements an embeddable and replicated
+SQL database engine with high-availability and automatic failover.")
+ (license license:lgpl3+)))
--
2.31.1
next reply other threads:[~2021-06-01 6:04 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-06-01 6:03 Dion Mendel [this message]
2021-06-05 21:29 ` bug#48773: [PATCH] gnu: Add libdqlite 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=20210601060323.GA27513@dm9.info \
--to=guix@dm9.info \
--cc=48773@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).