diff options
author | Efraim Flashner <efraim@flashner.co.il> | 2023-05-22 17:36:31 +0300 |
---|---|---|
committer | Efraim Flashner <efraim@flashner.co.il> | 2023-07-18 20:56:06 +0300 |
commit | 584cfe0f741f295b915deb221b10c1c0bec03c97 (patch) | |
tree | 39f937bbeb594a1fe6a49db434d1656212a3552f | |
parent | aa9da8538ef389ea48d7645fd4da11de6d93622a (diff) | |
download | guix-584cfe0f741f295b915deb221b10c1c0bec03c97.tar.gz |
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.
-rw-r--r-- | gnu/packages/sequoia.scm | 39 |
1 files changed, 19 insertions, 20 deletions
diff --git a/gnu/packages/sequoia.scm b/gnu/packages/sequoia.scm index 9fc3eecf45..45502a71c5 100644 --- a/gnu/packages/sequoia.scm +++ b/gnu/packages/sequoia.scm @@ -40,30 +40,29 @@ #:use-module (gnu packages rust) #:use-module (gnu packages tls)) -(define-public rust-sequoia-autocrypt-0.23 +(define-public rust-sequoia-autocrypt-0.25 (package (name "rust-sequoia-autocrypt") - (version "0.23.1") - (source - (origin - (method url-fetch) - (uri (crate-uri "sequoia-autocrypt" version)) - (file-name (string-append name "-" version ".tar.gz")) - (sha256 - (base32 "0skj0dv15341v470g6w5pggsl0iy27qb8h24rr8k6rq7vxdjxl7g")))) + (version "0.25.0") + (source (origin + (method url-fetch) + (uri (crate-uri "sequoia-autocrypt" version)) + (file-name (string-append name "-" version ".tar.gz")) + (sha256 + (base32 + "0796mn8kwrpfc8qzliwyyy62mrg2w0j6ax8929jwrkibvwy2axi2")))) (build-system cargo-build-system) (arguments - `(#:skip-build? #t - #:cargo-inputs - (("rust-base64" ,rust-base64-0.13) - ("rust-sequoia-openpgp" ,rust-sequoia-openpgp-1)) - #:phases - (modify-phases %standard-phases - (add-after 'unpack 'remove-other-crypto-features - (lambda _ - (substitute* "Cargo.toml" - (("^crypto-cng =" line) (string-append "# " line)) - (("^crypto-rust =" line) (string-append "# " line)))))))) + `(#:features '("sequoia-openpgp/crypto-nettle") + #:cargo-inputs + (("rust-base64" ,rust-base64-0.13) + ("rust-sequoia-openpgp" ,rust-sequoia-openpgp-1)) + #:cargo-development-inputs + (("rust-sequoia-openpgp" ,rust-sequoia-openpgp-1)))) + (native-inputs + (list clang pkg-config)) + (inputs + (list gmp nettle)) (home-page "https://sequoia-pgp.org/") (synopsis "Deal with Autocrypt encoded data") (description "This crate implements low-level functionality like encoding |