From 54a540c448baa5b06f64525d57043b41d721343d Mon Sep 17 00:00:00 2001 From: Kenny Ballou Date: Fri, 23 Apr 2021 09:32:44 -0600 Subject: [PATCH] update-melpa.el: update gitlab fetcher to use API URL GitLab packages were not downloading because the archive URL's used were invalid. Following the [GitLab API Docs][0], use the correct GitLab archive URL. This change is mirrored in ttuegel/emacs2nix#57. Signed-off-by: Kenny Ballou --- pkgs/applications/editors/emacs-modes/update-melpa.el | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/pkgs/applications/editors/emacs-modes/update-melpa.el b/pkgs/applications/editors/emacs-modes/update-melpa.el index b315777620ed..c8c1bfee566b 100644 --- a/pkgs/applications/editors/emacs-modes/update-melpa.el +++ b/pkgs/applications/editors/emacs-modes/update-melpa.el @@ -99,7 +99,10 @@ return Promise to resolve in that process." ("github" (list "nix-prefetch-url" "--unpack" (concat "https://github.com/" repo "/archive/" commit ".tar.gz"))) ("gitlab" (list "nix-prefetch-url" - "--unpack" (concat "https://gitlab.com/" repo "/repository/archive.tar.gz?ref=" commit))) + "--unpack" (concat "https://gitlab.com/api/v4/projects/" + (url-hexify-string repo) + "/repository/archive.tar.gz?ref=" + commit))) ("bitbucket" (list "nix-prefetch-hg" (concat "https://bitbucket.com/" repo) commit)) ("hg" (list "nix-prefetch-hg"