mirror of
https://git.savannah.gnu.org/git/guix.git
synced 2025-01-20 06:37:08 +01:00
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:
parent
b78da6b018
commit
932c0dbbac
1 changed files with 6 additions and 12 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue