mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-02-06 12:14:40 +00:00
emacs: make sure native compilation output dir is in $out (#342212)
This commit is contained in:
commit
b20bede431
@ -90,6 +90,7 @@ libBuildHelper.extendMkDerivation' stdenv.mkDerivation (finalAttrs:
|
||||
| xargs --verbose -0 -I {} -n 1 -P $NIX_BUILD_CORES sh -c \
|
||||
"emacs \
|
||||
--batch \
|
||||
--eval '(setq native-comp-eln-load-path (cdr native-comp-eln-load-path))' \
|
||||
--eval '(setq large-file-warning-threshold nil)' \
|
||||
--eval '(setq byte-compile-error-on-warn ${if finalAttrs.turnCompilationWarningToError then "t" else "nil"})' \
|
||||
-f batch-native-compile {} \
|
||||
|
@ -25,4 +25,14 @@ rec {
|
||||
broken = true;
|
||||
};
|
||||
});
|
||||
|
||||
mkHome =
|
||||
pkg:
|
||||
pkg.overrideAttrs (previousAttrs: {
|
||||
preInstall =
|
||||
''
|
||||
HOME=$(mktemp -d)
|
||||
''
|
||||
+ previousAttrs.preInstall or "";
|
||||
});
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user