gnu: Add rust-sha1-0.2.

* gnu/packages/crates-io.scm (rust-sha1-0.2): New variable.

Signed-off-by: Efraim Flashner <efraim@flashner.co.il>
This commit is contained in:
Valentin Ignatev 2020-01-26 16:41:45 +03:00 committed by Efraim Flashner
parent b090c2fd80
commit e3249fe2ce
No known key found for this signature in database
GPG key ID: 41AAE7DCCA3D8351

View file

@ -15053,6 +15053,34 @@ (define-public rust-sha1-0.6
"Minimal implementation of SHA1 for Rust.")
(license license:bsd-3)))
(define-public rust-sha1-0.2
(package
(inherit rust-sha1-0.6)
(name "rust-sha1")
(version "0.2.0")
(source
(origin
(method url-fetch)
(uri (crate-uri "sha1" version))
(file-name
(string-append name "-" version ".tar.gz"))
(sha256
(base32
"0p09zfhd27z6yr5in07gfjcx345010rw51ivlcf14364x3hv2c6c"))))
(arguments
`(#: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)))))
(native-inputs
`(("openssl" ,openssl-1.0))))) ; for openssl-sys-extras
(define-public rust-sha1-asm-0.4
(package
(name "rust-sha1-asm")