gnu: rust-structopt-0.3: Use snippet.

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

Change-Id: I468ab9e5813bea6d4cbee74c22ae8ad4c4803a0c
Reviewed-by: Aaron Covrig <aaron.covrig.us@ieee.org>
Signed-off-by: Steve George <steve@futurile.net>
This commit is contained in:
Herman Rimm 2025-01-19 21:48:57 -05:00 committed by Hilton Chain
parent f81fd9cb9f
commit 2b767565a5
No known key found for this signature in database
GPG key ID: ACC66D09CA528292

View file

@ -81767,31 +81767,24 @@ defining a struct.")
(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
#:cargo-inputs
(("rust-structopt-derive" ,rust-structopt-derive-0.4)
("rust-lazy-static" ,rust-lazy-static-1)
("rust-paw" ,rust-paw-1)
("rust-clap" ,rust-clap-2))
#: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))))))))
`(#:cargo-inputs (("rust-structopt-derive" ,rust-structopt-derive-0.4)
("rust-lazy-static" ,rust-lazy-static-1)
("rust-paw" ,rust-paw-1)
("rust-clap" ,rust-clap-2))
#:cargo-development-inputs (("rust-strum" ,rust-strum-0.21)
("rust-trybuild" ,rust-trybuild-1)
("rust-rustversion" ,rust-rustversion-1))))
(home-page "https://github.com/TeXitoi/structopt")
(synopsis "Parse command line argument by defining a struct")
(description