aboutsummaryrefslogtreecommitdiff
path: root/gnu/packages/sequoia.scm
diff options
context:
space:
mode:
authorEfraim Flashner <efraim@flashner.co.il>2024-03-31 20:48:41 +0300
committerEfraim Flashner <efraim@flashner.co.il>2024-07-19 00:46:07 +0300
commit1d49e8e5bcf0cf242653f93541c68928402ab1c3 (patch)
treef119be94daddccd34f104f5e03d16fcc2caea369 /gnu/packages/sequoia.scm
parent22a921754927702e67b42f3434906bdd5f571f13 (diff)
downloadguix-1d49e8e5bcf0cf242653f93541c68928402ab1c3.tar.gz
guix-1d49e8e5bcf0cf242653f93541c68928402ab1c3.zip
gnu: Add rust-sequoia-wot-0.11.
* gnu/packages/sequoia.scm (rust-sequoia-wot-0.11): New variable. (rust-sequoia-wot-0.8): Remove variable. (sequoia-wot): Inherit from rust-sequoia-wot-0.11. [arguments]: Install evlish shell completions. Change-Id: I011b103ada299c1f147b625ad7cf78e5f27735e3
Diffstat (limited to 'gnu/packages/sequoia.scm')
-rw-r--r--gnu/packages/sequoia.scm76
1 files changed, 37 insertions, 39 deletions
diff --git a/gnu/packages/sequoia.scm b/gnu/packages/sequoia.scm
index 64267c0ff6..5cec646998 100644
--- a/gnu/packages/sequoia.scm
+++ b/gnu/packages/sequoia.scm
@@ -423,47 +423,43 @@ Although the above appear simple to parse, RFC 2822's whitespace and comment
rules are rather complex. This crate implements the whole grammar." )
(license license:gpl3)))
-(define-public rust-sequoia-wot-0.8
+(define-public rust-sequoia-wot-0.11
(package
(name "rust-sequoia-wot")
- (version "0.8.1")
- (source (origin
- (method url-fetch)
- (uri (crate-uri "sequoia-wot" version))
- (file-name (string-append name "-" version ".tar.gz"))
- (sha256
- (base32
- "0rcp7ndjpdd4dkryhkkhakc8axbj93c1gr9qxxksdvrik803alfg"))))
+ (version "0.11.0")
+ (source
+ (origin
+ (method url-fetch)
+ (uri (crate-uri "sequoia-wot" version))
+ (file-name (string-append name "-" version ".tar.gz"))
+ (sha256
+ (base32 "0hb17adcqz357ci3d4v57pmywy4giq8591p1vb7p83h56zdk0sfi"))))
(build-system cargo-build-system)
(arguments
`(#:features '("sequoia-openpgp/crypto-nettle")
- #:cargo-test-flags
- (list "--release" "--"
- ;; Not all files included.
- "--skip=gpg_trust_roots")
- #:cargo-inputs
- (("rust-anyhow" ,rust-anyhow-1)
- ("rust-chrono" ,rust-chrono-0.4)
- ("rust-clap" ,rust-clap-4)
- ("rust-clap-complete" ,rust-clap-complete-4)
- ("rust-clap-mangen" ,rust-clap-mangen-0.2)
- ("rust-crossbeam" ,rust-crossbeam-0.8)
- ("rust-dot-writer" ,rust-dot-writer-0.1)
- ("rust-enumber" ,rust-enumber-0.3)
- ("rust-lazy-static" ,rust-lazy-static-1)
- ("rust-num-cpus" ,rust-num-cpus-1)
- ("rust-openpgp-cert-d" ,rust-openpgp-cert-d-0.1)
- ("rust-sequoia-cert-store" ,rust-sequoia-cert-store-0.3)
- ("rust-sequoia-openpgp" ,rust-sequoia-openpgp-1)
- ("rust-sequoia-policy-config" ,rust-sequoia-policy-config-0.6)
- ("rust-thiserror" ,rust-thiserror-1)
- ("rust-tokio" ,rust-tokio-1))
- #:cargo-development-inputs
- (("rust-assert-cmd" ,rust-assert-cmd-2)
- ("rust-predicates" ,rust-predicates-2)
- ("rust-quickcheck" ,rust-quickcheck-1)
- ("rust-sequoia-openpgp" ,rust-sequoia-openpgp-1)
- ("rust-tempfile" ,rust-tempfile-3))))
+ #:cargo-test-flags '("--release" "--"
+ ;; Not all files included.
+ "--skip=gpg_trust_roots")
+ #:cargo-inputs (("rust-anyhow" ,rust-anyhow-1)
+ ("rust-anyhow" ,rust-anyhow-1)
+ ("rust-chrono" ,rust-chrono-0.4)
+ ("rust-clap" ,rust-clap-4)
+ ("rust-clap" ,rust-clap-4)
+ ("rust-clap-complete" ,rust-clap-complete-4)
+ ("rust-clap-mangen" ,rust-clap-mangen-0.2)
+ ("rust-crossbeam" ,rust-crossbeam-0.8)
+ ("rust-dot-writer" ,rust-dot-writer-0.1)
+ ("rust-enumber" ,rust-enumber-0.3)
+ ("rust-num-cpus" ,rust-num-cpus-1)
+ ("rust-sequoia-cert-store" ,rust-sequoia-cert-store-0.5)
+ ("rust-sequoia-openpgp" ,rust-sequoia-openpgp-1)
+ ("rust-sequoia-policy-config" ,rust-sequoia-policy-config-0.6)
+ ("rust-thiserror" ,rust-thiserror-1))
+ #:cargo-development-inputs (("rust-assert-cmd" ,rust-assert-cmd-2)
+ ("rust-predicates" ,rust-predicates-2)
+ ("rust-quickcheck" ,rust-quickcheck-1)
+ ("rust-sequoia-openpgp" ,rust-sequoia-openpgp-1)
+ ("rust-tempfile" ,rust-tempfile-3))))
(inputs
(list nettle openssl sqlite))
(native-inputs
@@ -564,10 +560,10 @@ This Guix package is built to use the nettle cryptographic library.")
(define-public sequoia-wot
(package
- (inherit rust-sequoia-wot-0.8)
+ (inherit rust-sequoia-wot-0.11)
(name "sequoia-wot")
(arguments
- (substitute-keyword-arguments (package-arguments rust-sequoia-wot-0.8)
+ (substitute-keyword-arguments (package-arguments rust-sequoia-wot-0.11)
((#:install-source? _ #t) #f)
((#:phases phases '%standard-phases)
`(modify-phases ,phases
@@ -579,14 +575,16 @@ This Guix package is built to use the nettle cryptographic library.")
(for-each (lambda (file)
(install-file file man1))
(find-files "target/release" "\\.1$"))
- ;; TODO: Install _sq-wot.ps1, sq-wot.elv
(mkdir-p (string-append out "/etc/bash_completion.d"))
(mkdir-p (string-append share "/fish/vendor_completions.d"))
+ (mkdir-p (string-append share "/elvish/lib"))
(copy-file (car (find-files "target/release" "sq-wot.bash"))
(string-append out "/etc/bash_completion.d/sq-wot"))
(copy-file (car (find-files "target/release" "sq-wot.fish"))
(string-append
share "/fish/vendor_completions.d/sq-wot.fish"))
+ (copy-file (car (find-files "target/release" "sq-wot.elv"))
+ (string-append share "/elvish/lib/sq-wot"))
(install-file (car (find-files "target/release" "_sq-wot"))
(string-append
share "/zsh/site-functions")))))))))