summaryrefslogtreecommitdiff
path: root/pre-inst-env
diff options
context:
space:
mode:
Diffstat (limited to 'pre-inst-env')
-rwxr-xr-xpre-inst-env13
1 files changed, 13 insertions, 0 deletions
diff --git a/pre-inst-env b/pre-inst-env
new file mode 100755
index 0000000..79afb4f
--- /dev/null
+++ b/pre-inst-env
@@ -0,0 +1,13 @@
+#!/usr/bin/env bash
+
+panther_dir="$(dirname "$(realpath "$0")")"
+
+GUILE_LOAD_PATH="${panther_dir}${GUILE_LOAD_PATH:+:}${GUILE_LOAD_PATH}"
+GUIX_PACKAGE_PATH="${panther_dir}${GUIX_PACKAGE_PATH:+:}${GUIX_PACKAGE_PATH}"
+
+export GUILE_LOAD_PATH GUIX_PACKAGE_PATH
+
+echo $GUILE_LOAD_PATH
+echo $GUIX_PACKAGE_PATH
+
+exec "$@"