guix-commits
[Top][All Lists]
Advanced

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

43/49: gnu: graphviz: Don't hard code Guile version.


From: guix-commits
Subject: 43/49: gnu: graphviz: Don't hard code Guile version.
Date: Fri, 23 Jul 2021 11:33:13 -0400 (EDT)

mbakke pushed a commit to branch core-updates
in repository guix.

commit b389d1b18cef0e0ca7a635486998d911790ac3a9
Author: Marius Bakke <marius@gnu.org>
AuthorDate: Fri Jul 23 17:14:13 2021 +0200

    gnu: graphviz: Don't hard code Guile version.
    
    * gnu/packages/graphviz.scm (graphviz)[arguments]: Install Guile bindings 
for
    the version of Guile provided as input.
---
 gnu/packages/graphviz.scm | 7 +++++--
 1 file changed, 5 insertions(+), 2 deletions(-)

diff --git a/gnu/packages/graphviz.scm b/gnu/packages/graphviz.scm
index 70b511c..abf2096 100644
--- a/gnu/packages/graphviz.scm
+++ b/gnu/packages/graphviz.scm
@@ -89,8 +89,11 @@
                  (lambda* (#:key outputs #:allow-other-keys)
                    (let* ((out (assoc-ref outputs "out"))
                           (lib (string-append out "/lib"))
-                          (extdir (string-append lib
-                                                 "/guile/2.0/extensions")))
+                          (extdir (string-append lib "/guile/"
+                                                 #$(version-major+minor
+                                                    (package-version
+                                                     (this-package-input 
"guile")))
+                                                 "/extensions")))
                      (mkdir-p extdir)
                      (rename-file (string-append
                                    lib "/graphviz/guile/libgv_guile.so")



reply via email to

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