guix-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

04/06: gnu: guile-sqlite3: Add "guile3.0-sqlite3" variant.


From: guix-commits
Subject: 04/06: gnu: guile-sqlite3: Add "guile3.0-sqlite3" variant.
Date: Sat, 23 Nov 2019 16:48:28 -0500 (EST)

civodul pushed a commit to branch master
in repository guix.

commit d15e4b1dc25000ba0ec5ae28cd5ea73c7d0ad1c5
Author: Ludovic Courtès <address@hidden>
Date:   Sat Nov 23 22:02:07 2019 +0100

    gnu: guile-sqlite3: Add "guile3.0-sqlite3" variant.
    
    * gnu/packages/guile.scm (guile-sqlite3)[source](modules, snippet): New
    fields.
    (guile3.0-sqlite3): New variable.
---
 gnu/packages/guile.scm | 13 ++++++++++++-
 1 file changed, 12 insertions(+), 1 deletion(-)

diff --git a/gnu/packages/guile.scm b/gnu/packages/guile.scm
index 2063086..6526ad2 100644
--- a/gnu/packages/guile.scm
+++ b/gnu/packages/guile.scm
@@ -541,7 +541,15 @@ Guile's foreign function interface.")
               (sha256
                (base32
                 "1nv8j7wk6b5n4p22szyi8lv8fs31rrzxhzz16gyj8r38c1fyp9qp"))
-              (file-name (string-append name "-" version "-checkout"))))
+              (file-name (string-append name "-" version "-checkout"))
+              (modules '((guix build utils)))
+              (snippet
+               '(begin
+                  ;; Allow builds with Guile 3.0.
+                  (substitute* "configure.ac"
+                    (("^GUILE_PKG.*")
+                     "GUILE_PKG([3.0 2.2 2.0])\n"))
+                  #t))))
     (build-system gnu-build-system)
     (native-inputs
      `(("autoconf" ,autoconf)
@@ -558,6 +566,9 @@ Guile's foreign function interface.")
 (define-public guile2.0-sqlite3
   (package-for-guile-2.0 guile-sqlite3))
 
+(define-public guile3.0-sqlite3
+  (package-for-guile-3.0 guile-sqlite3))
+
 (define-public guile-bytestructures
   (package
     (name "guile-bytestructures")



reply via email to

[Prev in Thread] Current Thread [Next in Thread]