From 923c6816061f1579011848141a670aad51af1c59 Mon Sep 17 00:00:00 2001 From: Luis Guilherme Coelho Date: Tue, 19 Nov 2024 11:58:33 -0300 Subject: [PATCH] packages: password-utils: Add tessen --- radix/packages/password-utils.scm | 48 +++++++++++++++++++++++++++++++ 1 file changed, 48 insertions(+) create mode 100644 radix/packages/password-utils.scm diff --git a/radix/packages/password-utils.scm b/radix/packages/password-utils.scm new file mode 100644 index 0000000..d31a04a --- /dev/null +++ b/radix/packages/password-utils.scm @@ -0,0 +1,48 @@ +(define-module (radix packages password-utils) + #:use-module (gnu packages freedesktop) + #:use-module (gnu packages gnome) + #:use-module (gnu packages man) + #:use-module (gnu packages xdisorg) + #:use-module (guix build-system gnu) + #:use-module (guix gexp) + #:use-module (guix git-download) + #:use-module (guix packages) + #:use-module ((guix licenses) + #:prefix license:)) + +(define-public tessen + (package + (name "tessen") + (version "2.2.3") + (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 + "0pxx3x50k1zi82vjvib94rar6sy5bz3s2amq4zyba6s1a8isqlcr")))) + (build-system gnu-build-system) + (arguments + (list #:tests? #f ;no tests + #:phases + #~(modify-phases %standard-phases + (add-after 'unpack 'patch-wtype-path + (lambda* (#:key inputs #:allow-other-keys) + (substitute* "tessen" + (("notify-send") (search-input-file inputs "/bin/notify-send")) + (("wl-copy") (search-input-file inputs "/bin/wl-copy")) + (("wtype") (search-input-file inputs "/bin/wtype")) + (("xdg-open") (search-input-file inputs "/bin/xdg-open"))))) + (delete 'configure)) ;no configure script + #:make-flags + #~(list (string-append "DESTDIR=" #$output) + "PREFIX=''"))) + (native-inputs (list scdoc)) + (inputs (list libnotify wl-clipboard wtype xdg-utils)) + (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)))