guix-patches
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[bug#64000] [PATCH 2/2] gnu: tessen: Wrap script.


From: Hilton Chain
Subject: [bug#64000] [PATCH 2/2] gnu: tessen: Wrap script.
Date: Sat, 10 Jun 2023 20:16:23 +0800

* gnu/packages/password-utils.scm (tessen)[arguments]<#:phases> Add phase
wrap.
Remove phase patch-wtype-path.
[inputs]: Add guile-3.0.
---
 gnu/packages/password-utils.scm | 16 ++++++++--------
 1 file changed, 8 insertions(+), 8 deletions(-)

diff --git a/gnu/packages/password-utils.scm b/gnu/packages/password-utils.scm
index 5caf0b80b5..afd5109b31 100644
--- a/gnu/packages/password-utils.scm
+++ b/gnu/packages/password-utils.scm
@@ -875,20 +875,20 @@ (define-public tessen
            #f ;no tests
            #:phases
            #~(modify-phases %standard-phases
-               (add-after 'unpack 'patch-wtype-path
+               (add-after 'install 'wrap
                  (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")))))
+                   (wrap-script (string-append #$output "/bin/tessen")
+                     `("PATH" suffix
+                       ,(map (lambda (program)
+                               (dirname (search-input-file
+                                         inputs (string-append "/bin/" 
program))))
+                             '("notify-send" "wl-copy" "wtype" "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))
+    (inputs (list guile-3.0 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
-- 
2.40.1






reply via email to

[Prev in Thread] Current Thread [Next in Thread]