Skip to content

Commit 34016f1

Browse files
committed
Document why CLJ_JVM_OPTS will not work
- As suggested by Alex Miller here: https://clojurians.slack.com/archives/C6QH853H8/p1668091456500079?thread_ts=1668075542.693729&cid=C6QH853H8
1 parent 3122287 commit 34016f1

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

default.nix

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,9 @@ in {
6161
chmod -R +w .
6262
6363
# Ensures that clojure creates all the caches in our empty separate home directory
64+
# We cannot use CLJ_JVM_OPTS here, because we want to override where `clojure`
65+
# resolves _itself_ from as well as the classpath that it builds
66+
# https://clojure.org/reference/clojure_cli#env_vars
6467
export JAVA_TOOL_OPTIONS="-Duser.home=$tmp/home"
6568
6669
${command}

0 commit comments

Comments
 (0)