melpaBuild: don't download dependencies
Stop package.el from trying to download dependencies. It wouldn't work anyway.
This commit is contained in:
@@ -12,7 +12,7 @@
|
|||||||
(pcase command-line-args-left
|
(pcase command-line-args-left
|
||||||
(`(,archive ,elpa)
|
(`(,archive ,elpa)
|
||||||
(progn (setq package-user-dir elpa)
|
(progn (setq package-user-dir elpa)
|
||||||
(package-install-file archive)))))
|
(melpa2nix-install-file archive)))))
|
||||||
|
|
||||||
(defun melpa2nix-build-package ()
|
(defun melpa2nix-build-package ()
|
||||||
(if (not noninteractive)
|
(if (not noninteractive)
|
||||||
@@ -48,3 +48,20 @@
|
|||||||
(time-to-seconds (time-since start-time))
|
(time-to-seconds (time-since start-time))
|
||||||
(current-time-string))
|
(current-time-string))
|
||||||
(princ (format "%s\n" archive-file)))))
|
(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)))
|
||||||
|
|||||||
Reference in New Issue
Block a user