mirror of
https://codeberg.org/guix/guix.git
synced 2026-01-25 03:55:08 -06:00
import: cpan: Use guix-hash-url.
* guix/import/cpan.scm (cpan-module->sexp): Use guix-hash-url. Signed-off-by: Ludovic Courtès <ludo@gnu.org>
This commit is contained in:
parent
2c5b7a3b63
commit
5801225b89
1 changed files with 7 additions and 9 deletions
|
|
@ -30,15 +30,13 @@
|
|||
#:use-module (srfi srfi-26)
|
||||
#:use-module (srfi srfi-34)
|
||||
#:use-module (json)
|
||||
#:use-module (gcrypt hash)
|
||||
#:use-module (guix diagnostics)
|
||||
#:use-module (guix i18n)
|
||||
#:use-module (guix store)
|
||||
#:use-module (guix utils)
|
||||
#:use-module (guix base32)
|
||||
#:use-module ((guix download) #:select (download-to-store url-fetch))
|
||||
#:use-module ((guix import utils)
|
||||
#:select (factorize-uri recursive-import))
|
||||
#:select (factorize-uri guix-hash-url recursive-import))
|
||||
#:use-module (guix import json)
|
||||
#:use-module (guix packages)
|
||||
#:use-module (guix upstream)
|
||||
|
|
@ -293,12 +291,12 @@ in RELEASE, a <cpan-release> record."
|
|||
`(package
|
||||
(name ,(cpan-name->downstream-name name))
|
||||
(version ,version)
|
||||
(source (origin
|
||||
(method url-fetch)
|
||||
(uri (string-append ,@(factorize-uri source-url version)))
|
||||
(sha256
|
||||
(base32
|
||||
,(bytevector->nix-base32-string (file-sha256 tarball))))))
|
||||
(source
|
||||
(origin
|
||||
(method url-fetch)
|
||||
(uri (string-append ,@(factorize-uri source-url version)))
|
||||
(sha256
|
||||
(base32 ,(guix-hash-url tarball)))))
|
||||
(build-system perl-build-system)
|
||||
,@(maybe-inputs 'native-inputs
|
||||
(filter (upstream-input-type-predicate 'native)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue