about summary refs log tree commit diff
path: root/pkgs/development/compilers/chicken/setup-hook.sh
diff options
context:
space:
mode:
Diffstat (limited to 'pkgs/development/compilers/chicken/setup-hook.sh')
-rw-r--r--pkgs/development/compilers/chicken/setup-hook.sh7
1 files changed, 7 insertions, 0 deletions
diff --git a/pkgs/development/compilers/chicken/setup-hook.sh b/pkgs/development/compilers/chicken/setup-hook.sh
new file mode 100644
index 000000000000..8d6b990a7e05
--- /dev/null
+++ b/pkgs/development/compilers/chicken/setup-hook.sh
@@ -0,0 +1,7 @@
+addChickenRepositoryPath() {
+    addToSearchPathWithCustomDelimiter : CHICKEN_REPOSITORY_EXTRA "$1/lib/chicken/7/"
+    # addToSearchPathWithCustomDelimiter \; CHICKEN_INCLUDE_PATH "$1/share/"
+    export CHICKEN_INCLUDE_PATH="$1/share;$CHICKEN_INCLUDE_PATH"
+}
+
+envHooks=(${envHooks[@]} addChickenRepositoryPath)