Subject: [bug#33210] [PATCH 1/3] gnu: Add sqlite-with-single-thread.

From: Clément Lassieur <[email-masked]>
Date: Tue, 30 Oct 2018 21:47:24 +0100

* gnu/packages/databases.scm (sqlite-with-single-thread): New variable.
---
 gnu/packages/databases.scm | 10 ++++++++++
 1 file changed, 10 insertions(+)

diff --git a/gnu/packages/databases.scm b/gnu/packages/databases.scm
index 87fb170e5..24914cd87 100644
--- a/gnu/packages/databases.scm
+++ b/gnu/packages/databases.scm
@@ -32,6 +32,7 @@
 ;;; Copyright © 2017 Kristofer Buffington <[email-masked]>
 ;;; Copyright © 2018 Amirouche Boubekki <[email-masked]>
 ;;; Copyright © 2018 Joshua Sierles, Nextjournal <[email-masked]>
+;;; Copyright © 2018 Clément Lassieur <[email-masked]>
 ;;;
 ;;; This file is part of GNU Guix.
 ;;;
@@ -1223,6 +1224,15 @@ is in the public domain.")
                               "-DSQLITE_ENABLE_DBSTAT_VTAB "
                               "-DSQLITE_ENABLE_COLUMN_METADATA")))))))
 
+;; This is used by Cuirass.
+(define-public sqlite-with-single-thread
+  (package (inherit sqlite)
+    (name "sqlite-with-single-thread")
+    (arguments
+     (substitute-keyword-arguments (package-arguments sqlite)
+       ((#:configure-flags flags)
+        `(cons "--disable-threadsafe" ,flags))))))
+
 (define-public tdb
   (package
     (name "tdb")
-- 
2.19.1