Merge pull request #151334 from adisbladis/emacs-native-comp-file-sizes
emacs: Ignore large file warnings for native compilation
This commit is contained in:
commit
dfbb14571a
@ -86,7 +86,7 @@ stdenv.mkDerivation ({
|
||||
|
||||
find $out/share/emacs -type f -name '*.el' -print0 \
|
||||
| xargs -0 -n 1 -I {} -P $NIX_BUILD_CORES sh -c \
|
||||
"emacs --batch -f batch-native-compile {} || true"
|
||||
"emacs --batch --eval '(setq large-file-warning-threshold nil)' -f batch-native-compile {} || true"
|
||||
'';
|
||||
}
|
||||
|
||||
|
@ -8,6 +8,9 @@
|
||||
(setq package-build-archive-dir (expand-file-name "packages/"))
|
||||
(setq package-build-recipes-dir (expand-file-name "recipes/"))
|
||||
|
||||
;; Allow installing package tarfiles larger than 10MB
|
||||
(setq large-file-warning-threshold nil)
|
||||
|
||||
(defun melpa2nix-build-package ()
|
||||
(if (not noninteractive)
|
||||
(error "`melpa2nix-build-package' is to be used only with -batch"))
|
||||
|
Loading…
Reference in New Issue
Block a user