File tree Expand file tree Collapse file tree 1 file changed +11
-4
lines changed Expand file tree Collapse file tree 1 file changed +11
-4
lines changed Original file line number Diff line number Diff line change 110110 git commit -m "Switch to local package repos"
111111 '' ;
112112
113+ project = runCommand "julia-project" { } ''
114+ mkdir $out
115+ cd $out
116+ cp ${ manifestToml } ./Manifest.toml
117+ cp ${ ./Project.toml } ./Project.toml
118+ '' ;
119+
113120 depot = runCommand "julia-depot" {
114121 buildInputs = [ git curl julia ] ++ extraBuildInputs ;
115122 inherit registry precompile ;
119126 echo "Using registry $registry"
120127 echo "Using Julia ${ julia } /bin/julia"
121128
122- cp ${ manifestToml } ./Manifest.toml
123- cp ${ ./Project.toml } ./Project.toml
129+ export JULIA_PROJECT=${ project }
124130
125131 mkdir -p $out/artifacts
126132 cp ${ overridesToml } $out/artifacts/Overrides.toml
149155
150156 startupJl = writeText "startup.jl" ''
151157 using Pkg;
152- Pkg.activate("${ depot } ")
158+ Pkg.activate("${ project } ")
153159 '' ;
154160
155161 autoActivateArgs = lib . optionalString autoActivate "--add-flags '-i ${ startupJl } '" ;
@@ -162,5 +168,6 @@ runCommand "julia-env" {
162168} ''
163169 mkdir -p $out/bin
164170 makeWrapper $julia/bin/julia $out/bin/julia ${ autoActivateArgs } \
165- --suffix JULIA_DEPOT_PATH : "$depot" $makeWrapperArgs
171+ --suffix JULIA_DEPOT_PATH : "$depot" $makeWrapperArgs \
172+ --set JULIA_PROJECT "${ project } "
166173''
You can’t perform that action at this time.
0 commit comments