guix_mirror_bot pushed a commit to branch master
in repository guix.
commit 8bf8fed532090a3ae0e61d47b3b024651034a9bb
Author: Nicolas Graves <[email protected]>
AuthorDate: Tue Sep 16 19:05:12 2025 +0200
import: hackage: Use guix-hash-url.
* guix/import/hackage.scm (hackage-module->sexp): Use guix-hash-url.
Signed-off-by: Ludovic Courtès <[email protected]>
---
guix/import/hackage.scm | 14 +++++++-------
1 file changed, 7 insertions(+), 7 deletions(-)
diff --git a/guix/import/hackage.scm b/guix/import/hackage.scm
index 0186db014a..34bcc9f707 100644
--- a/guix/import/hackage.scm
+++ b/guix/import/hackage.scm
@@ -316,13 +316,13 @@ the hash of the Cabal file."
`(package
(name ,(hackage-name->package-name name))
(version ,version)
- (source (origin
- (method url-fetch)
- (uri (hackage-uri ,name version))
- (sha256
- (base32
- ,(if tarball
- (bytevector->nix-base32-string (file-sha256 tarball))
+ (source
+ (origin
+ (method url-fetch)
+ (uri (hackage-uri ,name version))
+ (sha256
+ (base32 ,(if tarball
+ (guix-hash-url tarball)
"failed to download tar archive")))))
(build-system haskell-build-system)
(properties '((upstream-name . ,name)))