mirror of
https://codeberg.org/guix/guix.git
synced 2025-10-01 18:05:17 +00:00
import: hackage: Use guix-hash-url.
* guix/import/hackage.scm (hackage-module->sexp): Use guix-hash-url. Signed-off-by: Ludovic Courtès <ludo@gnu.org>
This commit is contained in:
parent
dd720662e7
commit
8bf8fed532
1 changed files with 7 additions and 7 deletions
|
@ -316,13 +316,13 @@ the hash of the Cabal file."
|
|||
`(package
|
||||
(name ,(hackage-name->package-name name))
|
||||
(version ,version)
|
||||
(source (origin
|
||||
(source
|
||||
(origin
|
||||
(method url-fetch)
|
||||
(uri (hackage-uri ,name version))
|
||||
(sha256
|
||||
(base32
|
||||
,(if tarball
|
||||
(bytevector->nix-base32-string (file-sha256 tarball))
|
||||
(base32 ,(if tarball
|
||||
(guix-hash-url tarball)
|
||||
"failed to download tar archive")))))
|
||||
(build-system haskell-build-system)
|
||||
(properties '((upstream-name . ,name)))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue