Skip to content

Commit 25e0206

Browse files
authored
Improve NonGNU ELPA recipes from MELPA further (#1261)
Automatically detect NonGNU ELPA recipes in MELPA, and tweak them to respect the user's configuration for which NonGNU ELPA repository to use, which defaults to a more performant mirror than upstream. Also set the shallow clone configuration to one that is suitable for the NonGNU ELPA repository. Closes #1259
1 parent 8b3a54b commit 25e0206

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

straight.el

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3833,6 +3833,7 @@ Otherwise return nil."
38333833

38343834
;;;;;; MELPA
38353835

3836+
(defvar straight-recipes-nongnu-elpa-url)
38363837
(defun straight-recipes-melpa-retrieve (package)
38373838
"Look up a PACKAGE recipe in MELPA.
38383839
PACKAGE should be a symbol. If the package has a recipe listed in
@@ -3876,7 +3877,9 @@ return nil."
38763877
(when (equal
38773878
(plist-get melpa-plist :url)
38783879
"https://git.savannah.gnu.org/git/emacs/nongnu.git")
3879-
(straight--put plist :local-repo (symbol-name package)))
3880+
(straight--put plist :local-repo (symbol-name package))
3881+
(straight--put plist :repo straight-recipes-nongnu-elpa-url)
3882+
(straight--put plist :depth '(full single-branch)))
38803883
(cons name plist))))
38813884
(error nil))))
38823885

0 commit comments

Comments
 (0)