import: elpa: Fix repo url for melpa git recipes.

* guix/import/elpa.scm (melpa-recipe->origin): Take repo location from
:url for `git' :fetcher.

Merges guix/guix!5631

Change-Id: I6a3a8cef52eda2e5c731b8ff7f38f17dc920e167
Signed-off-by: Cayetano Santos <csantosb@inventati.org>
This commit is contained in:
Sergey Trofimov 2026-01-15 07:36:38 +01:00 committed by Cayetano Santos
parent aa6add1ca8
commit 1fc556b686
No known key found for this signature in database
GPG key ID: BF5CDF4DF6BF6682

View file

@ -251,7 +251,7 @@ the package named PACKAGE-NAME."
(string-append "https://github.com/" (assq-ref recipe ':repo))))
('gitlab (recipe->origin
(string-append "https://gitlab.com/" (assq-ref recipe ':repo))))
('git (recipe->origin (assq-ref recipe ':repo)))
('git (recipe->origin (assq-ref recipe ':url)))
;; XXX: if we're not using melpa then this stops us printing a warning
(#f #f)
(_ (warning (G_ "\