Commit 7f289b17 authored by Valentin Reis's avatar Valentin Reis
Browse files

setting TMPDIR

parent 96211a57
Pipeline #5707 passed with stage
in 23 seconds
......@@ -248,6 +248,10 @@ setupSystem sa = do
$ inproc "mktemp" ["-d", "/tmp/deletable-nix-cache-XXXX"] empty
export "XDG_CACHE_HOME" $ lineToText cachedir
doVerbose $ printInfo $ lineToText cachedir <> " exported to XDG_CACHE_HOME"
inproc "rm" ["-rf", "/tmp/nixtmpdir"] empty
inproc "mkdir" ["-p", "/tmp/nixtmpdir"] empty
export "TMPDIR" "/tmp/nixtmpdir/"
doVerbose $ printInfo $ lineToText cachedir <> " exported to XDG_CACHE_HOME"
vshell "sudo rm -rf result" empty >>= \case
ExitSuccess -> printInfo "removed ./result"
ExitFailure n ->
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment