Avoid mktemp
Nix promises to run us in an (empty) temporary directory. So we should not need mktemp, we can just use deterministic names. Our temporary directory should already not be leaking into the output (and we enforce that for the profile), so this should just be cleanup that makes debugging slightly easier.
This commit is contained in:
parent
d81e519c86
commit
51e61c24fe
3 changed files with 9 additions and 7 deletions
|
|
@ -36,7 +36,7 @@ runCommandLocal name
|
|||
)
|
||||
# Set DOOMLOCALDIR somewhere harmless to stop Doom from trying to create it somewhere read-only.
|
||||
''
|
||||
mkdir $out
|
||||
export DOOMLOCALDIR=$(mktemp -d)
|
||||
mkdir $out doomlocaldir
|
||||
export DOOMLOCALDIR="$PWD/doomlocaldir"
|
||||
$runtimeShell $doomSource/bin/doomscript $script ${scriptArgs}
|
||||
''
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue