tests: Use a #:prefix for (gcrypt hash).

* tests/packages.scm: Use #:prefix instead of #:hide for (gcrypt hash).
This accomodates for 'sha512' syntax literal matches with Guile-Gcrypt 0.3.0,
which exports 'sha512' in addition to 'sha256'.
This commit is contained in:
Ludovic Courtès 2020-05-23 15:45:22 +02:00
parent 0459649e3e
commit 197c07a847
No known key found for this signature in database
GPG Key ID: 090B11993D9AEBB5
1 changed files with 4 additions and 3 deletions

View File

@ -29,7 +29,7 @@
#:renamer (lambda (name) #:renamer (lambda (name)
(cond ((eq? name 'location) 'make-location) (cond ((eq? name 'location) 'make-location)
(else name)))) (else name))))
#:use-module ((gcrypt hash) #:hide (sha256)) #:use-module ((gcrypt hash) #:prefix gcrypt:)
#:use-module (guix derivations) #:use-module (guix derivations)
#:use-module (guix packages) #:use-module (guix packages)
#:use-module (guix grafts) #:use-module (guix grafts)
@ -515,8 +515,9 @@
(uri "unused://") (uri "unused://")
(file-name "origin-sha512") (file-name "origin-sha512")
(hash (content-hash (hash (content-hash
(bytevector-hash (string->utf8 "hello") (gcrypt:bytevector-hash (string->utf8 "hello")
(hash-algorithm sha512)) (gcrypt:lookup-hash-algorithm
'sha512))
sha512)))) sha512))))
(drv (package-source-derivation %store source)) (drv (package-source-derivation %store source))
(output (derivation->output-path drv))) (output (derivation->output-path drv)))