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
|
|
@ -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.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue