summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEfraim Flashner <efraim@flashner.co.il>2019-08-14 12:09:03 +0300
committerEfraim Flashner <efraim@flashner.co.il>2019-08-14 12:09:03 +0300
commit4585859f33983e793f33b76e29f0d375220ee270 (patch)
tree195bf2a95da0fa91381992c7ecb60f95e55d3a63
parente07b04882a621f0e78ec9cc81071722529530290 (diff)
downloadpatches-4585859f33983e793f33b76e29f0d375220ee270.tar
patches-4585859f33983e793f33b76e29f0d375220ee270.tar.gz
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.
-rw-r--r--gnu/packages/rust.scm2
1 files changed, 2 insertions, 0 deletions
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 "\"")))