From 95e6468a841d77d8c766f8e331eb66115eaf1550 Mon Sep 17 00:00:00 2001
From: Martin Becze <mjbecze@riseup.net>
Date: Thu, 20 Aug 2020 12:39:50 -0500
Subject: [PATCH] gnu: chez-scheme: Install libraries to 'lib/csvX.Y.Z-site'
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

* gnu/packages/chez.scm (chez-make-flags): Add 'chezversion'.

Co-authored-by: Ludovic Courtès <ludo@gnu.org>
---
 gnu/packages/chez.scm | 10 +++++++---
 1 file changed, 7 insertions(+), 3 deletions(-)

diff --git a/gnu/packages/chez.scm b/gnu/packages/chez.scm
index da0b17e7997..df9d68a55c9 100644
--- a/gnu/packages/chez.scm
+++ b/gnu/packages/chez.scm
@@ -416,9 +416,13 @@ (define chez-configure
 ;; 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
-- 
GitLab