mirror of
https://git.savannah.gnu.org/git/guix.git
synced 2025-01-20 22:56:23 +01:00
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:
parent
b090c2fd80
commit
e3249fe2ce
1 changed files with 28 additions and 0 deletions
|
@ -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")
|
||||
|
|
Loading…
Reference in a new issue