summaryrefslogtreecommitdiff
path: root/gnu/packages/sequoia.scm
diff options
context:
space:
mode:
authorEfraim Flashner <efraim@flashner.co.il>2024-09-22 21:32:57 +0300
committerEfraim Flashner <efraim@flashner.co.il>2024-11-28 11:04:45 +0200
commit7426236b825f7b5041a4c516a64f748126a3ea73 (patch)
tree6bb61aeffdbbf0834bd7522440b6ceec339d406c /gnu/packages/sequoia.scm
parent5a4468e45911e978832c21f6efb95841fb33c124 (diff)
gnu: Add rust-sequoia-keystore-tpm-0.1.
* gnu/packages/sequoia.scm (rust-sequoia-keystore-tpm-0.1): New variable. Change-Id: I317ac8c81baf8631babe3359187e1b32a8676b5f
Diffstat (limited to 'gnu/packages/sequoia.scm')
-rw-r--r--gnu/packages/sequoia.scm41
1 files changed, 41 insertions, 0 deletions
diff --git a/gnu/packages/sequoia.scm b/gnu/packages/sequoia.scm
index 52ddcb005b..db15437153 100644
--- a/gnu/packages/sequoia.scm
+++ b/gnu/packages/sequoia.scm
@@ -33,6 +33,7 @@
#:use-module (gnu packages crates-web)
#:use-module (gnu packages crates-windows)
#:use-module (gnu packages gnupg)
+ #:use-module (gnu packages hardware)
#:use-module (gnu packages llvm)
#:use-module (gnu packages multiprecision)
#:use-module (gnu packages nettle)
@@ -498,6 +499,46 @@ private key store.")
private key store.")
(license license:lgpl2.0+)))
+(define-public rust-sequoia-keystore-tpm-0.1
+ (package
+ (name "rust-sequoia-keystore-tpm")
+ (version "0.1.0")
+ (source
+ (origin
+ (method url-fetch)
+ (uri (crate-uri "sequoia-keystore-tpm" version))
+ (file-name (string-append name "-" version ".tar.gz"))
+ (sha256
+ (base32 "00cc468mf9wvkrkdzc1lhjg8a1a0qgfdj046kk09x1nfzlbm5ggh"))))
+ (build-system cargo-build-system)
+ (arguments
+ `(#:features '("sequoia-openpgp/crypto-nettle")
+ #:cargo-inputs
+ (("rust-anyhow" ,rust-anyhow-1)
+ ("rust-async-trait" ,rust-async-trait-0.1)
+ ("rust-futures" ,rust-futures-0.3)
+ ("rust-log" ,rust-log-0.4)
+ ("rust-openpgp-cert-d" ,rust-openpgp-cert-d-0.3)
+ ("rust-sequoia-ipc" ,rust-sequoia-ipc-0.35)
+ ("rust-sequoia-keystore-backend" ,rust-sequoia-keystore-backend-0.6)
+ ("rust-sequoia-openpgp" ,rust-sequoia-openpgp-1)
+ ("rust-sequoia-tpm" ,rust-sequoia-tpm-0.1)
+ ("rust-serde" ,rust-serde-1)
+ ("rust-serde-yaml" ,rust-serde-yaml-0.8)
+ ("rust-tokio" ,rust-tokio-1))
+ #:cargo-development-inputs
+ (("rust-env-logger" ,rust-env-logger-0.10)
+ ("rust-sequoia-openpgp" ,rust-sequoia-openpgp-1)
+ ("rust-tracing" ,rust-tracing-0.1)
+ ("rust-tracing-subscriber" ,rust-tracing-subscriber-0.3))))
+ (native-inputs (list clang pkg-config))
+ (inputs (list nettle tpm2-tss))
+ (home-page "https://sequoia-pgp.org/")
+ (synopsis "TPM backend for Sequoia's private key store")
+ (description
+ "This package provides a TPM backend for Sequoia's private key store.")
+ (license license:lgpl2.0+)))
+
(define-public rust-sequoia-net-0.28
(package
(name "rust-sequoia-net")