import: elpa: Use guix-hash-url.

* guix/import/elpa.scm (elpa-package->sexp): Use guix-hash-url.

Signed-off-by: Ludovic Courtès <ludo@gnu.org>
This commit is contained in:
Nicolas Graves 2025-09-16 19:00:22 +02:00 committed by Ludovic Courtès
parent 5801225b89
commit 2c1e7f1cc4
No known key found for this signature in database
GPG key ID: 090B11993D9AEBB5

View file

@ -44,10 +44,8 @@
#:use-module (guix import utils)
#:use-module (guix http-client)
#:use-module (guix git)
#:use-module (guix hash)
#:use-module (guix store)
#:use-module ((guix utils) #:select (downstream-package-name))
#:use-module (guix base32)
#:use-module (guix upstream)
#:use-module (guix packages)
#:use-module (guix memoization)
@ -370,8 +368,7 @@ type '<elpa-package>'."
(sha256
(base32
,(if tarball
(bytevector->nix-base32-string
(file-hash* tarball #:recursive? #false))
(guix-hash-url tarball)
"failed to download package")))))))
(build-system emacs-build-system)
,@(maybe-inputs 'propagated-inputs dependencies)