git.iko.soy/typeable/nixpkgs
on master help sign in
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.

commit9e56cddf136837d30820783228299b600d98e8b6 authorRodney Lorrimar <dev@rodney.id.au> dateMon 29 May 2017, 12:17 (9 years ago) parent13f2f86
1 file changed+3
pkgs/build-support/emacs/elpa2nix.el+3
pkgs/build-support/emacs/elpa2nix.el+3
@@ -28,3 +28,6 @@ The file can either be a tar file or an Emacs Lisp file."
2828 (insert-file-contents file))
2929 (when is-tar (tar-mode))
3030 (elpa2nix-install-from-buffer))))
31+
32+;; Allow installing package tarfiles larger than 10MB
33+(setq large-file-warning-threshold nil)