From 4585859f33983e793f33b76e29f0d375220ee270 Mon Sep 17 00:00:00 2001 From: Efraim Flashner Date: Wed, 14 Aug 2019 12:09:03 +0300 Subject: [PATCH] gnu: rust: Fix building. This is a follow-up to e07b04882a621f0e78ec9cc81071722529530290. * 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. --- gnu/packages/rust.scm | 2 ++ 1 file changed, 2 insertions(+) diff --git a/gnu/packages/rust.scm b/gnu/packages/rust.scm index 584c48a699..7f0e5e5cb6 100644 --- a/gnu/packages/rust.scm +++ b/gnu/packages/rust.scm @@ -270,6 +270,7 @@ test = { path = \"../libtest\" } #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 @@ jemalloc = \"" jemalloc "/lib/libjemalloc_pic.a" "\" ;; 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 "\"")))