Change package! :recipe to extend default recipe

Instead of replacing the whole recipe with the contents of :recipe, only
modify the specified properties. This allows you to specify helpful
parameters like :nonrecursive or :depth without having to include the
full recipe.
This commit is contained in:
Henrik Lissner 2019-07-29 17:22:27 +02:00
parent baafa0f635
commit 19b6e82dc4
No known key found for this signature in database
GPG key ID: 5F6C0EA160557395

View file

@ -161,7 +161,8 @@ necessary package metadata is initialized and available for them."
do (with-demoted-errors "Package error: %s"
(straight-register-package
(if-let (recipe (plist-get plist :recipe))
`(,pkg ,@recipe)
(let ((plist (straight-recipes-retrieve pkg)))
`(,pkg ,@(doom-plist-merge recipe (cdr plist))))
pkg))))))
(defun doom-ensure-straight ()