about summary refs log tree commit diff
path: root/pkgs/applications/editors/emacs/elisp-packages/update-melpa.el
diff options
context:
space:
mode:
authorOsama Rebach <osamarebach@gmail.com>2022-09-12 00:10:35 +0100
committerOsama Rebach <osamarebach@gmail.com>2022-09-12 01:53:14 +0100
commit9b3213ba9939989413488d4e1518be9ed00c1949 (patch)
treef424601e9b99448ccbeaa94f69cad2b519c93f11 /pkgs/applications/editors/emacs/elisp-packages/update-melpa.el
parentfaa93c4e19e79e7a6de31d6d3492b8f00760ca82 (diff)
Handle melpa new fetchers (sourcehut, codeberg)
Diffstat (limited to 'pkgs/applications/editors/emacs/elisp-packages/update-melpa.el')
-rw-r--r--pkgs/applications/editors/emacs/elisp-packages/update-melpa.el4
1 files changed, 4 insertions, 0 deletions
diff --git a/pkgs/applications/editors/emacs/elisp-packages/update-melpa.el b/pkgs/applications/editors/emacs/elisp-packages/update-melpa.el
index c8c1bfee566ba..a900d1bedd347 100644
--- a/pkgs/applications/editors/emacs/elisp-packages/update-melpa.el
+++ b/pkgs/applications/editors/emacs/elisp-packages/update-melpa.el
@@ -103,6 +103,10 @@ return Promise to resolve in that process."
                                                   (url-hexify-string repo)
                                                   "/repository/archive.tar.gz?ref="
                                                   commit)))
+            ("sourcehut" (list "nix-prefetch-url"
+                               "--unpack" (concat "https://git.sr.ht/~" repo "/archive/" commit ".tar.gz")))
+            ("codeberg" (list "nix-prefetch-url"
+                              "--unpack" (concat "https://codeberg.org/" repo "/archive/" commit ".tar.gz")))
             ("bitbucket" (list "nix-prefetch-hg"
                                (concat "https://bitbucket.com/" repo) commit))
             ("hg"        (list "nix-prefetch-hg"