summary refs log tree commit diff
diff options
context:
space:
mode:
authorHartmut Goebel <h.goebel@crazy-compilers.com>2022-06-29 09:39:51 +0200
committerHartmut Goebel <h.goebel@crazy-compilers.com>2022-06-30 11:29:18 +0200
commitc267b76ca30638e5e03a2e5ff1f00464313a5fbd (patch)
tree6a4f0404b79e3c404e8ddf924075b5ebaadf2c14
parentb73e85186a8c08dac568c12b134af1c8bd0d16b6 (diff)
downloadguix-c267b76ca30638e5e03a2e5ff1f00464313a5fbd.tar.gz
hexpm
-rw-r--r--guix/import/hexpm.scm4
1 files changed, 2 insertions, 2 deletions
diff --git a/guix/import/hexpm.scm b/guix/import/hexpm.scm
index 2a7a9f3d82..e84e9a5b44 100644
--- a/guix/import/hexpm.scm
+++ b/guix/import/hexpm.scm
@@ -328,11 +328,11 @@ latest version of PACKAGE-NAME."
 ;;; Updater
 ;;;
 
-(define (latest-release package)
+(define* (latest-release package #:key (version #f))
   "Return an <upstream-source> for the latest release of PACKAGE."
   (let* ((hexpm-name (guix-package->hexpm-name package))
          (hexpm      (lookup-hexpm hexpm-name))
-         (version    (hexpm-latest-release hexpm))
+         (version    (or version (hexpm-latest-release hexpm)))
          (url        (hexpm-uri hexpm-name version)))
     (upstream-source
      (package (package-name package))