all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* [bug#75206] [PATCH rust-team 01/10] gnu: rust-structopt-0.3: Use snippet.
@ 2024-12-30 17:52 Herman Rimm via Guix-patches via
  2024-12-30 17:57 ` [bug#75206] [PATCH rust-team 02/10] gnu: rust-structopt-0.3: Build Herman Rimm via Guix-patches via
                   ` (8 more replies)
  0 siblings, 9 replies; 10+ messages in thread
From: Herman Rimm via Guix-patches via @ 2024-12-30 17:52 UTC (permalink / raw)
  To: 75206; +Cc: Efraim Flashner

* gnu/packages/crates-io.scm (rust-structopt-0.3): Add snippet.
[arguments]: Remove fixup-cargo-toml phase.

Change-Id: I468ab9e5813bea6d4cbee74c22ae8ad4c4803a0c
---
 gnu/packages/crates-io.scm | 22 +++++++++-------------
 1 file changed, 9 insertions(+), 13 deletions(-)

diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm
index 0b38709201d..4034345fcf5 100644
--- a/gnu/packages/crates-io.scm
+++ b/gnu/packages/crates-io.scm
@@ -79155,11 +79155,15 @@ (define-public rust-structopt-0.3
      (origin
        (method url-fetch)
        (uri (crate-uri "structopt" version))
-       (file-name
-        (string-append name "-" version ".tar.gz"))
+       (file-name (string-append name "-" version ".tar.gz"))
        (sha256
-        (base32
-         "043sg3qxllann6q9i71d05qp3q13scmcvhxhd950ka2v8ij5qsqc"))))
+        (base32 "043sg3qxllann6q9i71d05qp3q13scmcvhxhd950ka2v8ij5qsqc"))
+       (modules '((guix build utils)))
+       (snippet
+        #~(begin (substitute* "Cargo.toml"
+                   ;; feature does not exist
+                   (("lints.*") "")
+                   (("2.33") #$(package-version rust-clap-2)))))))
     (build-system cargo-build-system)
     (arguments
      `(#:skip-build? #t
@@ -79171,15 +79175,7 @@ (define-public rust-structopt-0.3
        #:cargo-development-inputs
        (("rust-strum" ,rust-strum-0.21)
         ("rust-trybuild" ,rust-trybuild-1)
-        ("rust-rustversion" ,rust-rustversion-1))
-       #:phases
-       (modify-phases %standard-phases
-         (add-before 'build 'fixup-cargo-toml
-           (lambda _
-             (substitute* "Cargo.toml"
-               ;; feature does not exist
-               (("lints.*") "")
-               (("2.33") ,(package-version rust-clap-2))))))))
+        ("rust-rustversion" ,rust-rustversion-1))))
     (home-page "https://github.com/TeXitoi/structopt")
     (synopsis "Parse command line argument by defining a struct")
     (description

base-commit: 4d478f0b404a86a0849722536f11fde0b1857bb8
-- 
2.45.2





^ permalink raw reply related	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2024-12-30 18:01 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-12-30 17:52 [bug#75206] [PATCH rust-team 01/10] gnu: rust-structopt-0.3: Use snippet Herman Rimm via Guix-patches via
2024-12-30 17:57 ` [bug#75206] [PATCH rust-team 02/10] gnu: rust-structopt-0.3: Build Herman Rimm via Guix-patches via
2024-12-30 17:57 ` [bug#75206] [PATCH rust-team 03/10] gnu: rust-syn-2: Use snippet Herman Rimm via Guix-patches via
2024-12-30 17:57 ` [bug#75206] [PATCH rust-team 04/10] gnu: rust-syn-1: Inherit rust-syn-2 Herman Rimm via Guix-patches via
2024-12-30 17:57 ` [bug#75206] [PATCH rust-team 05/10] gnu: rust-syn-0.11: Use snippet Herman Rimm via Guix-patches via
2024-12-30 17:57 ` [bug#75206] [PATCH rust-team 06/10] gnu: rust-synom-0.11: " Herman Rimm via Guix-patches via
2024-12-30 17:57 ` [bug#75206] [PATCH rust-team 07/10] gnu: rust-synom-0.11: Fix build Herman Rimm via Guix-patches via
2024-12-30 17:57 ` [bug#75206] [PATCH rust-team 08/10] gnu: rust-uint-0.9: Use snippet Herman Rimm via Guix-patches via
2024-12-30 17:57 ` [bug#75206] [PATCH rust-team 09/10] gnu: rust-rustls-ffi-0.8: " Herman Rimm via Guix-patches via
2024-12-30 17:57 ` [bug#75206] [PATCH rust-team 10/10] gnu: rust-user32-sys-0.2: " Herman Rimm via Guix-patches via

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.