Merge pull request #98128 from NieDzejkob/chez-refactor
chez: add env hook
This commit is contained in:
commit
02be5a8185
@ -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
|
||||
'';
|
||||
|
||||
|
@ -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
|
||||
'';
|
||||
|
||||
|
@ -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/";
|
||||
|
5
pkgs/development/compilers/chez/setup-hook.sh
Normal file
5
pkgs/development/compilers/chez/setup-hook.sh
Normal file
@ -0,0 +1,5 @@
|
||||
addChezLibraryPath() {
|
||||
addToSearchPath CHEZSCHEMELIBDIRS "$1/lib/csv-site"
|
||||
}
|
||||
|
||||
addEnvHooks "$targetOffset" addChezLibraryPath
|
Loading…
Reference in New Issue
Block a user