summary refs log tree commit diff
path: root/gnu
diff options
context:
space:
mode:
authorLudovic Courtès <ludo@gnu.org>2014-04-01 23:57:44 +0200
committerLudovic Courtès <ludo@gnu.org>2014-04-01 23:57:44 +0200
commitbf6fcf547719117a37de6bd62de55f5901c0e831 (patch)
treec55d1b6063dca8a30899a76f1940bc11653a238b /gnu
parent39831f16633254d5eb28065d5132945bfe210152 (diff)
downloadguix-bf6fcf547719117a37de6bd62de55f5901c0e831.tar.gz
gnu: guile-json: Install under .../site/2.0.
* gnu/packages/guile.scm (guile-json)[source]: Add 'snippet'.
Diffstat (limited to 'gnu')
-rw-r--r--gnu/packages/guile.scm9
1 files changed, 8 insertions, 1 deletions
diff --git a/gnu/packages/guile.scm b/gnu/packages/guile.scm
index 5132a117a8..a240937f75 100644
--- a/gnu/packages/guile.scm
+++ b/gnu/packages/guile.scm
@@ -336,7 +336,14 @@ for Guile\".")
                                  version ".tar.gz"))
              (sha256
               (base32
-               "0nz2sx61kd6cfflwzxxq0cb9dz0asb81abbhfawv4p9ghciqdr3g"))))
+               "0nz2sx61kd6cfflwzxxq0cb9dz0asb81abbhfawv4p9ghciqdr3g"))
+             (modules '((guix build utils)))
+             (snippet
+              ;; Make sure everything goes under .../site/2.0, like Guile's
+              ;; search paths expects.
+              '(substitute* '("Makefile.in" "json/Makefile.in")
+                 (("moddir =.*/share/guile/site" all)
+                  (string-append all "/2.0"))))))
     (build-system gnu-build-system)
     (inputs `(("guile" ,guile-2.0)))
     (home-page "http://savannah.nongnu.org/projects/guile-json/")