gnu: rust-sha1-0.2: Use snippet.

* gnu/packages/crates-crypto.scm (rust-sha-0.2): Add snippet.
[phases]: Remove 'fix-cargo-toml phase.

Change-Id: Iaaa129e438a8798f9a8f8d418bb3c9302c7c6fcb
Signed-off-by: Efraim Flashner <efraim@flashner.co.il>
This commit is contained in:
Herman Rimm 2024-12-25 20:48:32 +01:00 committed by Efraim Flashner
parent b78da6b018
commit 932c0dbbac
No known key found for this signature in database
GPG key ID: 41AAE7DCCA3D8351

View file

@ -5766,23 +5766,17 @@ (define-public rust-sha1-0.2
(origin
(method url-fetch)
(uri (crate-uri "sha1" version))
(file-name
(string-append name "-" version ".tar.gz"))
(file-name (string-append name "-" version ".tar.gz"))
(sha256
(base32
"0p09zfhd27z6yr5in07gfjcx345010rw51ivlcf14364x3hv2c6c"))))
(base32 "0p09zfhd27z6yr5in07gfjcx345010rw51ivlcf14364x3hv2c6c"))
(modules '((guix build utils)))
(snippet #~(substitute* "Cargo.toml"
((", path =.*}") "}")))))
(arguments
`(#:tests? #f ; Tests require openssl-1.0
#:cargo-development-inputs
(("rust-openssl" ,rust-openssl-0.7)
("rust-rand" ,rust-rand-0.3))
#:phases
(modify-phases %standard-phases
(add-after 'unpack 'fix-cargo-toml
(lambda _
(substitute* "Cargo.toml"
((", path =.*}") "}"))
#t)))))))
("rust-rand" ,rust-rand-0.3))))))
(define-public rust-sha1-asm-0.5
(package