emacs: make sure native compilation output dir is in $out (#342212)

authored by Lin Jian and committed by GitHub b20bede4 ecd12b40

+11
+1
pkgs/applications/editors/emacs/build-support/generic.nix
··· 90 90 | xargs --verbose -0 -I {} -n 1 -P $NIX_BUILD_CORES sh -c \ 91 91 "emacs \ 92 92 --batch \ 93 + --eval '(setq native-comp-eln-load-path (cdr native-comp-eln-load-path))' \ 93 94 --eval '(setq large-file-warning-threshold nil)' \ 94 95 --eval '(setq byte-compile-error-on-warn ${if finalAttrs.turnCompilationWarningToError then "t" else "nil"})' \ 95 96 -f batch-native-compile {} \
+10
pkgs/applications/editors/emacs/elisp-packages/lib-override-helper.nix
··· 25 25 broken = true; 26 26 }; 27 27 }); 28 + 29 + mkHome = 30 + pkg: 31 + pkg.overrideAttrs (previousAttrs: { 32 + preInstall = 33 + '' 34 + HOME=$(mktemp -d) 35 + '' 36 + + previousAttrs.preInstall or ""; 37 + }); 28 38 }