summaryrefslogtreecommitdiff
path: root/pre-inst-env
diff options
context:
space:
mode:
Diffstat (limited to 'pre-inst-env')
-rwxr-xr-xpre-inst-env9
1 files changed, 9 insertions, 0 deletions
diff --git a/pre-inst-env b/pre-inst-env
new file mode 100755
index 0000000..47ab3f4
--- /dev/null
+++ b/pre-inst-env
@@ -0,0 +1,9 @@
+#!/bin/sh
+
+# Helper script for building from Git, without needing to `guix pull`.
+
+GUILE_LOAD_COMPILED_PATH="$(pwd -P)${GUILE_LOAD_COMPILED_PATH:+:}$GUILE_LOAD_COMPILED_PATH"
+GUILE_LOAD_PATH="$(pwd -P)${GUILE_LOAD_PATH:+:}$GUILE_LOAD_PATH"
+export GUILE_LOAD_COMPILED_PATH GUILE_LOAD_PATH
+
+exec "$@"