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:
Marien Zwart 2024-07-20 15:11:36 +10:00
parent d81e519c86
commit 51e61c24fe
No known key found for this signature in database
3 changed files with 9 additions and 7 deletions

View file

@ -40,7 +40,8 @@
# TODO: figure out why this is necessary (there may be a better
# solution).
preBuild = ''
export HOME=$(mktemp -d)
mkdir home
export HOME="$PWD/home"
'';
# TODO: set this properly (melpa2nix requires it).
commit = "unset";
@ -208,7 +209,8 @@
# Make it byte-compile (see auctex)
company-auctex = esuper.company-auctex.overrideAttrs (attrs: {
preBuild = (attrs.preBuild or "") + ''
export HOME=$(mktemp -d)
mkdir home
export HOME="$PWD/home"
'';
});
# Make it byte-compile.