~ruther/guix-local

8bf8fed532090a3ae0e61d47b3b024651034a9bb — Nicolas Graves 9 months ago dd72066
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>
1 files changed, 7 insertions(+), 7 deletions(-)

M guix/import/hackage.scm
M guix/import/hackage.scm => guix/import/hackage.scm +7 -7
@@ 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)))