[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#74086: [PATCH] guix: import: hackage: Support updating to a specific
From: |
Ludovic Courtès |
Subject: |
bug#74086: [PATCH] guix: import: hackage: Support updating to a specific version. |
Date: |
Thu, 14 Nov 2024 15:52:54 +0100 |
User-agent: |
Gnus/5.13 (Gnus v5.13) |
Hi,
Nicolas Graves <ngraves@ngraves.fr> skribis:
> * gnu/import/hackage.scm
> (hackage-fetch-and-hash, hackage-fetch): Support name and version
> argument.
> (import-release): New variable, formerly known as latest-release.
> Support updating to a specific version.
Nice. Applied with the fix below (spotted a compiler warning).
Thanks,
Ludo’.
diff --git a/guix/import/hackage.scm b/guix/import/hackage.scm
index e3ed98c089..422887d435 100644
--- a/guix/import/hackage.scm
+++ b/guix/import/hackage.scm
@@ -357,7 +357,7 @@ (define* (hackage->guix-package package-name #:key
(let ((cabal-meta cabal-hash
(if port
(read-cabal-and-hash port)
- (hackage-fetch-and-hash package-name))))
+ (hackage-fetch-and-hash package-name #f))))
(if cabal-meta
(hackage-module->sexp (eval-cabal cabal-meta cabal-environment)
cabal-hash
- bug#74086: [PATCH] guix: import: hackage: Support updating to a specific version.,
Ludovic Courtès <=