melpaBuild: don't download dependencies
Stop package.el from trying to download dependencies. It wouldn't work anyway.
This commit is contained in:
parent
18251778c9
commit
cd54d7af47
|
@ -12,7 +12,7 @@
|
|||
(pcase command-line-args-left
|
||||
(`(,archive ,elpa)
|
||||
(progn (setq package-user-dir elpa)
|
||||
(package-install-file archive)))))
|
||||
(melpa2nix-install-file archive)))))
|
||||
|
||||
(defun melpa2nix-build-package ()
|
||||
(if (not noninteractive)
|
||||
|
@ -48,3 +48,20 @@
|
|||
(time-to-seconds (time-since start-time))
|
||||
(current-time-string))
|
||||
(princ (format "%s\n" archive-file)))))
|
||||
|
||||
(defun melpa2nix-install-from-buffer ()
|
||||
"Install a package from the current buffer."
|
||||
(let ((pkg-desc (if (derived-mode-p 'tar-mode)
|
||||
(package-tar-file-info)
|
||||
(package-buffer-info))))
|
||||
;; Install the package itself.
|
||||
(package-unpack pkg-desc)
|
||||
pkg-desc))
|
||||
|
||||
(defun melpa2nix-install-file (file)
|
||||
"Install a package from a file.
|
||||
The file can either be a tar file or an Emacs Lisp file."
|
||||
(with-temp-buffer
|
||||
(insert-file-contents-literally file)
|
||||
(when (string-match "\\.tar\\'" file) (tar-mode))
|
||||
(melpa2nix-install-from-buffer)))
|
||||
|
|
Loading…
Reference in a new issue