Merge pull request #98128 from NieDzejkob/chez-refactor

chez: add env hook
This commit is contained in:
Austin Seipp 2020-09-22 23:17:08 -05:00 committed by GitHub
commit 02be5a8185
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 7 additions and 2 deletions

View File

@ -13,7 +13,6 @@ stdenv.mkDerivation {
buildInputs = [ chez chez-srfi ];
buildPhase = ''
export CHEZSCHEMELIBDIRS=${chez-srfi}/lib/csv-site
make PREFIX=$out CHEZ=${chez}/bin/scheme
'';

View File

@ -13,7 +13,6 @@ stdenv.mkDerivation {
buildInputs = [ chez chez-srfi chez-mit ];
buildPhase = ''
export CHEZSCHEMELIBDIRS=${chez-srfi}/lib/csv-site:${chez-mit}/lib/csv-site
make PREFIX=$out CHEZ=${chez}/bin/scheme
'';

View File

@ -65,6 +65,8 @@ stdenv.mkDerivation rec {
rm -rf $out/lib/csv${version}/examples
'';
setupHook = ./setup-hook.sh;
meta = {
description = "A powerful and incredibly fast R6RS Scheme compiler";
homepage = "https://cisco.github.io/ChezScheme/";

View File

@ -0,0 +1,5 @@
addChezLibraryPath() {
addToSearchPath CHEZSCHEMELIBDIRS "$1/lib/csv-site"
}
addEnvHooks "$targetOffset" addChezLibraryPath