Subject: [PATCH v2] gnu: Add tessen.

From: Tanguy Le Carrour <[email-masked]>
Date: Thu, 10 Mar 2022 07:53:46 +0100

* gnu/packages/password-utils.scm (tessen): New variable.
---
 gnu/packages/password-utils.scm | 36 ++++++++++++++++++++++++++++++++-
 1 file changed, 35 insertions(+), 1 deletion(-)

diff --git a/gnu/packages/password-utils.scm b/gnu/packages/password-utils.scm
index 440bb927a6..f8990cc5f5 100644
--- a/gnu/packages/password-utils.scm
+++ b/gnu/packages/password-utils.scm
@@ -23,7 +23,7 @@
 ;;; Copyright © 2018 Amirouche Boubekki <[email-masked]>
 ;;; Copyright © 2018, 2019, 2020 Tim Gesthuizen <[email-masked]>
 ;;; Copyright © 2019 Jens Mølgaard <[email-masked]>
-;;; Copyright © 2019 Tanguy Le Carrour <[email-masked]>
+;;; Copyright © 2019,2022 Tanguy Le Carrour <[email-masked]>
 ;;; Copyright © 2020 Guillaume Le Vaillant <[email-masked]>
 ;;; Copyright © 2020 Brice Waegeneire <[email-masked]>
 ;;; Copyright © 2020 Jean-Baptiste Note <[email-masked]>
@@ -736,6 +736,40 @@ (define-public rofi-pass
 @end enumerate")
     (license license:gpl3)))
 
+(define-public tessen
+  (package
+    (name "tessen")
+    (version "2.1.0")
+    (source (origin
+              (method git-fetch)
+              (uri (git-reference
+                    (url "https://github.com/ayushnix/tessen/")
+                    (commit (string-append "v" version))))
+              (file-name (git-file-name name version))
+              (sha256
+               (base32
+                "1ddsjhzp1qy3jfhxlrzcxgp0gza234yc0sdlngwa3xdj0wr40zs0"))))
+    (build-system gnu-build-system)
+    (arguments
+     `(#:phases (modify-phases %standard-phases
+                  (add-after 'unpack 'patch-wtype-path
+                    (lambda* (#:key inputs #:allow-other-keys)
+                      (let ((wtype (assoc-ref inputs "wtype")))
+                        (substitute* "tessen"
+                          (("wtype") (string-append wtype "/bin/wtype"))))))
+                  (delete 'configure)
+                  (delete 'check))
+       #:make-flags
+       (let ((out (assoc-ref %outputs "out")))
+         (list (string-append "PREFIX=" out)))))
+    (native-inputs (list scdoc))
+    (inputs (list wtype))
+    (home-page "https://github.com/ayushnix/tessen")
+    (synopsis "Frontend for password-store and gopass")
+    (description "Tessen is a bash script that can autotype and copy data
+from password-store and gopass files.")
+    (license license:gpl2+)))
+
 (define-public browserpass-native
   (package
     (name "browserpass-native")
-- 
2.34.0