summary refs log tree commit diff
diff options
context:
space:
mode:
authorRicardo Wurmus <rekado@elephly.net>2020-10-03 00:03:08 +0200
committerRicardo Wurmus <rekado@elephly.net>2020-10-03 00:04:43 +0200
commit95b16cd886e0ba74feaf560199c69f2a6aec04de (patch)
tree680bed8f3a3b855dec4804e88198a4509e2ccd6f
parent4164ae7cd1b7f268708d008ad4aebc6d6fb7484e (diff)
downloadguix-95b16cd886e0ba74feaf560199c69f2a6aec04de.tar.gz
gnu: nyacc: Use versioned Guile site directory.
This is a follow-up to commit 4e896da45d7be42ff1ad0b2be741b168573e6f0e.

* gnu/packages/mes.scm (nyacc)[source]: Add snippet.
-rw-r--r--gnu/packages/mes.scm10
1 files changed, 9 insertions, 1 deletions
diff --git a/gnu/packages/mes.scm b/gnu/packages/mes.scm
index d574071cc4..5ceb1c6151 100644
--- a/gnu/packages/mes.scm
+++ b/gnu/packages/mes.scm
@@ -105,7 +105,15 @@ extensive examples, including parsers for the Javascript and C99 languages.")
                                   version ".tar.gz"))
               (sha256
                (base32
-                "1vdiqpm3p0ndmpmkzcpkpjvgklfsk4wxrhkixdxbczpafdfl635p"))))
+                "1vdiqpm3p0ndmpmkzcpkpjvgklfsk4wxrhkixdxbczpafdfl635p"))
+              (modules '((guix build utils)))
+              (snippet
+               '(begin
+                  (substitute* "configure"
+                    (("GUILE_GLOBAL_SITE=\\$prefix.*")
+                     "GUILE_GLOBAL_SITE=\
+$prefix/share/guile/site/$GUILE_EFFECTIVE_VERSION\n"))
+                  #t))))
     (inputs
      `(("guile" ,guile-3.0)))))