mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2025-01-18 17:01:51 -05:00
gnu: Add rust-sequoia-autocrypt-0.25.
* gnu/packages/crates-io.scm (rust-sequoia-autocrypt-0.25): Replace rust-sequoia-autocrypt-0.23. [arguments]: Don't skip build. Add a feature-flag for sequoia-openpgp/crypto-nettle. Remove phase adjusting crypto features. [cargo-development-inputs]: Add rust-sequoia-openpgp-1. [inputs]: Add gmp, nettle. [native-inputs]: Add clang, pkg-config.
This commit is contained in:
parent
11f2f81342
commit
edf97e4a56
1 changed files with 19 additions and 20 deletions
|
@ -40,30 +40,29 @@ (define-module (gnu packages sequoia)
|
||||||
#:use-module (gnu packages rust)
|
#:use-module (gnu packages rust)
|
||||||
#:use-module (gnu packages tls))
|
#:use-module (gnu packages tls))
|
||||||
|
|
||||||
(define-public rust-sequoia-autocrypt-0.23
|
(define-public rust-sequoia-autocrypt-0.25
|
||||||
(package
|
(package
|
||||||
(name "rust-sequoia-autocrypt")
|
(name "rust-sequoia-autocrypt")
|
||||||
(version "0.23.1")
|
(version "0.25.0")
|
||||||
(source
|
(source (origin
|
||||||
(origin
|
(method url-fetch)
|
||||||
(method url-fetch)
|
(uri (crate-uri "sequoia-autocrypt" version))
|
||||||
(uri (crate-uri "sequoia-autocrypt" version))
|
(file-name (string-append name "-" version ".tar.gz"))
|
||||||
(file-name (string-append name "-" version ".tar.gz"))
|
(sha256
|
||||||
(sha256
|
(base32
|
||||||
(base32 "0skj0dv15341v470g6w5pggsl0iy27qb8h24rr8k6rq7vxdjxl7g"))))
|
"0796mn8kwrpfc8qzliwyyy62mrg2w0j6ax8929jwrkibvwy2axi2"))))
|
||||||
(build-system cargo-build-system)
|
(build-system cargo-build-system)
|
||||||
(arguments
|
(arguments
|
||||||
`(#:skip-build? #t
|
`(#:features '("sequoia-openpgp/crypto-nettle")
|
||||||
#:cargo-inputs
|
#:cargo-inputs
|
||||||
(("rust-base64" ,rust-base64-0.13)
|
(("rust-base64" ,rust-base64-0.13)
|
||||||
("rust-sequoia-openpgp" ,rust-sequoia-openpgp-1))
|
("rust-sequoia-openpgp" ,rust-sequoia-openpgp-1))
|
||||||
#:phases
|
#:cargo-development-inputs
|
||||||
(modify-phases %standard-phases
|
(("rust-sequoia-openpgp" ,rust-sequoia-openpgp-1))))
|
||||||
(add-after 'unpack 'remove-other-crypto-features
|
(native-inputs
|
||||||
(lambda _
|
(list clang pkg-config))
|
||||||
(substitute* "Cargo.toml"
|
(inputs
|
||||||
(("^crypto-cng =" line) (string-append "# " line))
|
(list gmp nettle))
|
||||||
(("^crypto-rust =" line) (string-append "# " line))))))))
|
|
||||||
(home-page "https://sequoia-pgp.org/")
|
(home-page "https://sequoia-pgp.org/")
|
||||||
(synopsis "Deal with Autocrypt encoded data")
|
(synopsis "Deal with Autocrypt encoded data")
|
||||||
(description "This crate implements low-level functionality like encoding
|
(description "This crate implements low-level functionality like encoding
|
||||||
|
|
Loading…
Reference in a new issue