all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Herman Rimm via Guix-patches via <guix-patches@gnu.org>
To: 75096@debbugs.gnu.org
Cc: Efraim Flashner <efraim@flashner.co.il>
Subject: [bug#75096] [PATCH rust-team 2/9] gnu: rust-itertools-0.9: Use snippet.
Date: Wed, 25 Dec 2024 20:49:48 +0100	[thread overview]
Message-ID: <0c5475dadcb639b7bc4c6d3ffe7682634acb8373.1735155954.git.herman@rimm.ee> (raw)
In-Reply-To: <a1a258a2362c7ef2e7cb24e69dc33d6bf654517e.1735155954.git.herman@rimm.ee>

* gnu/packages/crates-io.scm (rust-itertools-0.9): Add snippet.
[phases]: Remove patch-cargo-toml phase.

Change-Id: I27e5999daa849c2e9300ab5d7174c093a23f28ea
---
 gnu/packages/crates-io.scm | 26 ++++++++++----------------
 1 file changed, 10 insertions(+), 16 deletions(-)

diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm
index 4e05235585..2286eabb75 100644
--- a/gnu/packages/crates-io.scm
+++ b/gnu/packages/crates-io.scm
@@ -38810,14 +38810,15 @@ (define-public rust-itertools-0.9
     (name "rust-itertools")
     (version "0.9.0")
     (source
-      (origin
-        (method url-fetch)
-        (uri (crate-uri "itertools" version))
-        (file-name
-         (string-append name "-" version ".tar.gz"))
-        (sha256
-         (base32
-          "0jyml7ygr7kijkcjdl3fk5f34y5h5jsavclim7l13zjiavw1hkr8"))))
+     (origin
+       (method url-fetch)
+       (uri (crate-uri "itertools" version))
+       (file-name (string-append name "-" version ".tar.gz"))
+       (sha256
+        (base32 "0jyml7ygr7kijkcjdl3fk5f34y5h5jsavclim7l13zjiavw1hkr8"))
+       (modules '((guix build utils)))
+       (snippet #~(substitute* "Cargo.toml"
+                    (("=0.3.0") "0.3")))))
     (arguments
      `(#:cargo-inputs
        (("rust-either" ,rust-either-1))
@@ -38825,14 +38826,7 @@ (define-public rust-itertools-0.9
        (("rust-criterion" ,rust-criterion-0.3)
         ("rust-permutohedron" ,rust-permutohedron-0.2)
         ("rust-quickcheck" ,rust-quickcheck-0.9)
-        ("rust-rand" ,rust-rand-0.7))
-       #:phases
-       (modify-phases %standard-phases
-         (add-after 'unpack 'patch-cargo-toml
-           (lambda _
-             (substitute* "Cargo.toml"
-               (("=0.3.0") "0.3"))
-             #t)))))))
+        ("rust-rand" ,rust-rand-0.7))))))
 
 (define-public rust-itertools-0.8
   (package
-- 
2.45.2





  reply	other threads:[~2024-12-25 19:51 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-12-25 19:48 [bug#75096] [PATCH rust-team 1/9] gnu: rust-sha1-0.2: Use snippet Herman Rimm via Guix-patches via
2024-12-25 19:49 ` Herman Rimm via Guix-patches via [this message]
2024-12-25 19:49 ` [bug#75096] [PATCH rust-team 3/9] gnu: rust-openssl-0.7: " Herman Rimm via Guix-patches via
2024-12-25 19:49 ` [bug#75096] [PATCH rust-team 4/9] gnu: rust-openssl-sys-extras-0.7: " Herman Rimm via Guix-patches via
2024-12-25 19:49 ` [bug#75096] [PATCH rust-team 5/9] gnu: rust-serde-0.9: " Herman Rimm via Guix-patches via
2024-12-25 19:49 ` [bug#75096] [PATCH rust-team 6/9] gnu: rust-serde-derive-0.9: " Herman Rimm via Guix-patches via
2024-12-25 19:49 ` [bug#75096] [PATCH rust-team 7/9] gnu: rust-serde-test-0.9: " Herman Rimm via Guix-patches via
2024-12-25 19:49 ` [bug#75096] [PATCH rust-team 8/9] gnu: rust-serde-test-0.8: " Herman Rimm via Guix-patches via
2024-12-25 19:49 ` [bug#75096] [PATCH rust-team 9/9] gnu: rust-synstructure-0.12: " Herman Rimm via Guix-patches via
2024-12-26 20:51 ` bug#75096: [PATCH rust-team 1/9] gnu: rust-sha1-0.2: " Efraim Flashner

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=0c5475dadcb639b7bc4c6d3ffe7682634acb8373.1735155954.git.herman@rimm.ee \
    --to=guix-patches@gnu.org \
    --cc=75096@debbugs.gnu.org \
    --cc=efraim@flashner.co.il \
    --cc=herman@rimm.ee \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/guix.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.