guix-commits
[Top][All Lists]
Advanced

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

06/06: gnu: guile-syntax-highlight: Add "guile3.0-syntax-highlight" vari


From: guix-commits
Subject: 06/06: gnu: guile-syntax-highlight: Add "guile3.0-syntax-highlight" variant.
Date: Thu, 16 Jan 2020 12:31:27 -0500 (EST)

civodul pushed a commit to branch master
in repository guix.

commit fb8a77f456725ed6250bb57f58197f9954f30e57
Author: Ludovic Court├Ęs <address@hidden>
AuthorDate: Thu Jan 16 16:48:05 2020 +0100

    gnu: guile-syntax-highlight: Add "guile3.0-syntax-highlight" variant.
    
    * gnu/packages/guile-xyz.scm (guile-syntax-highlight)[source]: Add
    'snippet' and 'modules'.
    (guile3.0-syntax-highlight): New field.
---
 gnu/packages/guile-xyz.scm | 16 +++++++++++++++-
 1 file changed, 15 insertions(+), 1 deletion(-)

diff --git a/gnu/packages/guile-xyz.scm b/gnu/packages/guile-xyz.scm
index cf63253..9edb718 100644
--- a/gnu/packages/guile-xyz.scm
+++ b/gnu/packages/guile-xyz.scm
@@ -544,7 +544,15 @@ is not available for Guile 2.0.")
                                   version ".tar.gz"))
               (sha256
                (base32
-                "1p771kq15x83483m23bhah1sz6vkalg3drm7x279f4j1cxligkzi"))))
+                "1p771kq15x83483m23bhah1sz6vkalg3drm7x279f4j1cxligkzi"))
+              (modules '((guix build utils)))
+              (snippet
+               '(begin
+                  ;; Allow builds with Guile 3.0.
+                  (substitute* "configure"
+                    (("2\\.2 2\\.0")
+                     "3.0 2.2 2.0"))
+                  #t))))
     (build-system gnu-build-system)
     (native-inputs
      `(("pkg-config" ,pkg-config)))
@@ -558,6 +566,12 @@ HTML (via SXML) or any other format for rendering.")
     (home-page "http://dthompson.us/projects/guile-syntax-highlight.html";)
     (license license:lgpl3+)))
 
+(define-public guile3.0-syntax-highlight
+  (package
+    (inherit guile-syntax-highlight)
+    (name "guile3.0-syntax-highlight")
+    (inputs `(("guile" ,guile-3.0)))))
+
 (define-public guile-sjson
   (package
     (name "guile-sjson")



reply via email to

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