Subject: [bug#57111] [PATCH 29/56] gnu: rust-base64-0.13: Allow build.

From: Jean-Pierre De Jesus DIAZ <[email-masked]>
Date: Wed, 10 Aug 2022 12:07:57 +0000

* gnu/packages/crates-io.scm (rust-base64-0.13)[arguments]: Remove
  `#:skip-build? #t'.
---
 gnu/packages/crates-io.scm | 19 ++++++++-----------
 1 file changed, 8 insertions(+), 11 deletions(-)

diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm
index e5c4b63074..77896acce2 100644
--- a/gnu/packages/crates-io.scm
+++ b/gnu/packages/crates-io.scm
@@ -5758,21 +5758,18 @@ (define-public rust-base64-0.13
        (file-name
         (string-append name "-" version ".tar.gz"))
        (sha256
-        (base32 "1z82g23mbzjgijkpcrilc7nljpxpvpf7zxf6iyiapkgka2ngwkch"))))
+        (base32 "1z82g23mbzjgijkpcrilc7nljpxpvpf7zxf6iyiapkgka2ngwkch"))
+       (modules '((guix build utils)))
+       (snippet
+         ;; Relax rust-criterion-0.3 version.
+         '(substitute* "Cargo.toml"
+             (("0\\.3\\.2") "0.3")))))
     (build-system cargo-build-system)
     (arguments
-     `(#:skip-build? #t
-       #:cargo-development-inputs
+     `(#:cargo-development-inputs
        (("rust-criterion" ,rust-criterion-0.3)
         ("rust-rand" ,rust-rand-0.6)
-        ("rust-structopt" ,rust-structopt-0.3))
-       #:phases
-        (modify-phases %standard-phases
-         (add-after 'unpack 'fix-criterion-minor-version
-          (lambda* _
-           (substitute* "Cargo.toml"
-             (("0\\.3\\.2")
-              ,(package-version rust-criterion-0.3))))))))
+        ("rust-structopt" ,rust-structopt-0.3))))
     (home-page "https://github.com/marshallpierce/rust-base64")
     (synopsis "Encodes and decodes base64 as bytes or utf8")
     (description
--
2.34.1