gnu: rust: Fix building.

This is a follow-up to e07b04882a.

* gnu/packages/rust.scm (rust@1.19, rust@1.32)[arguments]: When using
functions from (guix build cargo-utils), make sure to include said
module in that build phase.
This commit is contained in:
Efraim Flashner 2019-08-14 12:09:03 +03:00
parent e07b04882a
commit 4585859f33
No known key found for this signature in database
GPG key ID: 41AAE7DCCA3D8351

View file

@ -270,6 +270,7 @@ (define rust-1.19
#t))
(add-after 'patch-source-shebangs 'patch-cargo-checksums
(lambda* _
(use-modules (guix build cargo-utils))
(substitute* "src/Cargo.lock"
(("(\"checksum .* = )\".*\"" all name)
(string-append name "\"" ,%cargo-reference-hash "\"")))
@ -966,6 +967,7 @@ (define-public rust-1.32
;; root of the rust tarball
(replace 'patch-cargo-checksums
(lambda* _
(use-modules (guix build cargo-utils))
(substitute* "Cargo.lock"
(("(\"checksum .* = )\".*\"" all name)
(string-append name "\"" ,%cargo-reference-hash "\"")))