[bug#33210,2/3] gnu: Add guile-sqlite3-with-single-thread.

Message ID 20181030204726.13354-2-clement@lassieur.org
State New
Headers show
Series
  • [bug#33210,1/3] gnu: Add sqlite-with-single-thread.
Related show

Checks

Context Check Description
cbaines/applying patch success Successfully applied

Commit Message

Clément Lassieur Oct. 30, 2018, 8:47 p.m. UTC
* gnu/packages/guile.scm (guile-sqlite3-with-single-thread): New variable.
---
 gnu/packages/guile.scm | 9 +++++++++
 1 file changed, 9 insertions(+)

Patch

diff --git a/gnu/packages/guile.scm b/gnu/packages/guile.scm
index 9e3300337..4f9ddf913 100644
--- a/gnu/packages/guile.scm
+++ b/gnu/packages/guile.scm
@@ -20,6 +20,7 @@ 
 ;;; Copyright © 2018 Arun Isaac <arunisaac@systemreboot.net>
 ;;; Copyright © 2018 Pierre-Antoine Rouby <pierre-antoine.rouby@inria.fr>
 ;;; Copyright © 2018 Eric Bavier <bavier@member.fsf.org>
+;;; Copyright © 2018 Clément Lassieur <clement@lassieur.org>
 ;;;
 ;;; This file is part of GNU Guix.
 ;;;
@@ -71,6 +72,7 @@ 
   #:use-module (gnu packages xdisorg)
   #:use-module (gnu packages xorg)
   #:use-module (gnu packages networking)
+  #:use-module ((guix build utils) #:select (alist-replace))
   #:use-module (guix packages)
   #:use-module (guix download)
   #:use-module (guix git-download)
@@ -1166,6 +1168,13 @@  Guile's foreign function interface.")
      "This package provides Guile bindings to the SQLite database system.")
     (license license:gpl3+)))
 
+(define-public guile-sqlite3-with-single-thread
+  (package
+    (inherit guile-sqlite3)
+    (name "guile-sqlite3-with-single-thread")
+    (inputs (alist-replace "sqlite" (list sqlite-with-single-thread)
+                           (package-inputs guile-sqlite3)))))
+
 (define-public guile2.0-sqlite3
   (package-for-guile-2.0 guile-sqlite3))