summary refs log tree commit diff
path: root/pkgs/build-support/emacs
diff options
context:
space:
mode:
authorRodney Lorrimar <dev@rodney.id.au>2017-05-29 12:17:15 +0100
committerRodney Lorrimar <dev@rodney.id.au>2017-05-29 12:56:09 +0100
commit9e56cddf136837d30820783228299b600d98e8b6 (patch)
tree86437896e424ca6eed36f32a5376a6e4bd9b3f12 /pkgs/build-support/emacs
parent13f2f8673b184599e7a65df422c968730554820f (diff)
downloadnixpkgs-9e56cddf136837d30820783228299b600d98e8b6.tar
nixpkgs-9e56cddf136837d30820783228299b600d98e8b6.tar.gz
nixpkgs-9e56cddf136837d30820783228299b600d98e8b6.tar.bz2
nixpkgs-9e56cddf136837d30820783228299b600d98e8b6.tar.lz
nixpkgs-9e56cddf136837d30820783228299b600d98e8b6.tar.xz
nixpkgs-9e56cddf136837d30820783228299b600d98e8b6.tar.zst
nixpkgs-9e56cddf136837d30820783228299b600d98e8b6.zip
emacsWithPackages: support installing larger packages
I was getting the following error building tide from Melpa:

    nix-build  -E '(import <nixpkgs> {}).emacs25WithPackages (p: [p.melpaPackages.tide])'

    File tide-20170509.1134.tar is large (10.2M), really open? (y or n) Error reading from stdin
    builder for ‘/nix/store/gs9ik7yf8iilsikkfing74i70m0diax3-emacs-tide-20170509.1134.drv’ failed with exit code 255
    cannot build derivation ‘/nix/store/m3p080aani4rw82llp8nqk93cw2nvirk-emacs-with-packages-25.2.drv’: 1 dependencies couldn't be built

Solution was to disable the large file warning threshold when
installing packages.
Diffstat (limited to 'pkgs/build-support/emacs')
-rw-r--r--pkgs/build-support/emacs/elpa2nix.el3
1 files changed, 3 insertions, 0 deletions
diff --git a/pkgs/build-support/emacs/elpa2nix.el b/pkgs/build-support/emacs/elpa2nix.el
index 7eef81b9e7a..64587c0fad1 100644
--- a/pkgs/build-support/emacs/elpa2nix.el
+++ b/pkgs/build-support/emacs/elpa2nix.el
@@ -28,3 +28,6 @@ The file can either be a tar file or an Emacs Lisp file."
         (insert-file-contents file))
       (when is-tar (tar-mode))
       (elpa2nix-install-from-buffer))))
+
+;; Allow installing package tarfiles larger than 10MB
+(setq large-file-warning-threshold nil)