summaryrefslogtreecommitdiff
path: root/guix/import/elpa.scm
diff options
context:
space:
mode:
authorLiliana Marie Prikler <liliana.prikler@gmail.com>2025-04-21 08:13:03 +0200
committerLiliana Marie Prikler <liliana.prikler@gmail.com>2025-05-22 11:18:08 +0200
commit9013a5370582807b0b71a8a0a0d7f63f2ca614b3 (patch)
tree05ee32b9e93efb73220280318780c5132e0c2b54 /guix/import/elpa.scm
parented83953921cd3a2abb09c1709399053c092215a2 (diff)
import/elpa: Improve CLI documentation for archive flag.
* guix/import/elpa.scm (elpa-url)[elpa-archives]: Move from here… (%elpa-archives): … to here. * guix/scripts/import/elpa.scm (%options): Add “list-archives”. (show-help): Adjust accordingly. Change-Id: Ib686bd9ff5eff2d4c37b8751ec1410666d568c1f Co-authored-by: jgart <jgart@dismail.de> Signed-off-by: Liliana Marie Prikler <liliana.prikler@gmail.com>
Diffstat (limited to 'guix/import/elpa.scm')
-rw-r--r--guix/import/elpa.scm17
1 files changed, 10 insertions, 7 deletions
diff --git a/guix/import/elpa.scm b/guix/import/elpa.scm
index ea16885d90..eda3d6d60b 100644
--- a/guix/import/elpa.scm
+++ b/guix/import/elpa.scm
@@ -8,6 +8,7 @@
;;; Copyright © 2021 Sarah Morgensen <iskarian@mgsn.dev>
;;; Copyright © 2021 Simon Tournier <zimon.toutoune@gmail.com>
;;; Copyright © 2022 Hartmut Goebel <h.goebel@crazy-compilers.com>
+;;; Copyright © 2025 jgart <jgart@dismail.de>
;;;
;;; This file is part of GNU Guix.
;;;
@@ -51,6 +52,7 @@
#:use-module (guix memoization)
#:export (elpa->guix-package
guix-package->elpa-name
+ %elpa-archives
%elpa-updater
elpa-recursive-import))
@@ -81,15 +83,16 @@ NAMES (strings)."
(string-downcase name)
(string-append package-name-prefix (string-downcase name)))))
+(define %elpa-archives
+ '((gnu . "https://elpa.gnu.org/packages")
+ (gnu/http . "http://elpa.gnu.org/packages") ;for testing
+ (nongnu . "https://elpa.nongnu.org/nongnu")
+ (melpa-stable . "https://stable.melpa.org/packages")
+ (melpa . "https://melpa.org/packages")))
+
(define* (elpa-url #:optional (repo 'gnu))
"Retrieve the URL of REPO."
- (let ((elpa-archives
- '((gnu . "https://elpa.gnu.org/packages")
- (gnu/http . "http://elpa.gnu.org/packages") ;for testing
- (nongnu . "https://elpa.nongnu.org/nongnu")
- (melpa-stable . "https://stable.melpa.org/packages")
- (melpa . "https://melpa.org/packages"))))
- (assq-ref elpa-archives repo)))
+ (assq-ref %elpa-archives repo))
(define* (elpa-fetch-archive #:optional (repo 'gnu))
"Retrieve the archive with the list of packages available from REPO."