From 8bf8fed532090a3ae0e61d47b3b024651034a9bb Mon Sep 17 00:00:00 2001 From: Nicolas Graves Date: Tue, 16 Sep 2025 19:05:12 +0200 Subject: [PATCH] import: hackage: Use guix-hash-url. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * guix/import/hackage.scm (hackage-module->sexp): Use guix-hash-url. Signed-off-by: Ludovic Courtès --- 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 0186db014a1..34bcc9f7072 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)))