chez: add env hook
As a follow-up to #97927, chez can now find its libraries in a nix-shell, and derivations for such libraries don't need to handle the search path themselves.
This commit is contained in:
@@ -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
|
||||
Reference in New Issue
Block a user