summary refs log tree commit diff
path: root/gnu/packages/chez.scm
diff options
context:
space:
mode:
authorMartin Becze <mjbecze@riseup.net>2020-08-20 12:39:50 -0500
committerLudovic Courtès <ludo@gnu.org>2020-09-02 17:17:37 +0200
commit95e6468a841d77d8c766f8e331eb66115eaf1550 (patch)
treeb0c1cc1816857ec788478e5d7522f02c5962bae5 /gnu/packages/chez.scm
parentfe4e770fc1a1a0ddc5025ac61d3d960621127fd8 (diff)
downloadguix-95e6468a841d77d8c766f8e331eb66115eaf1550.tar.gz
gnu: chez-scheme: Install libraries to 'lib/csvX.Y.Z-site'
* gnu/packages/chez.scm (chez-make-flags): Add 'chezversion'.

Co-authored-by: Ludovic Courtès <ludo@gnu.org>
Diffstat (limited to 'gnu/packages/chez.scm')
-rw-r--r--gnu/packages/chez.scm10
1 files changed, 7 insertions, 3 deletions
diff --git a/gnu/packages/chez.scm b/gnu/packages/chez.scm
index da0b17e799..df9d68a55c 100644
--- a/gnu/packages/chez.scm
+++ b/gnu/packages/chez.scm
@@ -416,9 +416,13 @@ Chez Scheme.")
 ;; files.
 (define (chez-make-flags name version)
   `(let ((out (assoc-ref %outputs "out")))
-     (list (string-append "PREFIX=" out)
-           (string-append "DOCDIR=" out "/share/doc/"
-                          ,name "-" ,version))))
+     (list
+      ;; Set 'chezversion' so that libraries are installed in
+      ;; 'lib/csvX.Y.Z-site' like Chez's 'native-search-paths' expects.
+      (string-append "chezversion=" ,(package-version chez-scheme))
+      (string-append "PREFIX=" out)
+      (string-append "DOCDIR=" out "/share/doc/"
+                     ,name "-" ,version))))
 
 (define-public chez-matchable
   (package