unofficial mirror of guix-patches@gnu.org 
 help / color / mirror / code / Atom feed
From: Hilton Chain via Guix-patches via <guix-patches@gnu.org>
To: 64000@debbugs.gnu.org
Cc: Hilton Chain <hako@ultrarare.space>
Subject: [bug#64000] [PATCH 2/2] gnu: tessen: Wrap script.
Date: Sat, 10 Jun 2023 20:16:23 +0800	[thread overview]
Message-ID: <2b733f31bea76f91944f8eb4ce4b1ba11f52d668.1686398222.git.hako@ultrarare.space> (raw)
In-Reply-To: <99bbb7c769098d85f4493a1fbe51fa735fad65bb.1686398222.git.hako@ultrarare.space>

* 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	other threads:[~2023-06-10 12:17 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-06-10 11:57 [bug#64000] [PATCH 1/2] gnu: tessen: Update to 2.2.1 Hilton Chain via Guix-patches via
2023-06-10 12:16 ` Hilton Chain via Guix-patches via [this message]
2023-07-19 15:37 ` [bug#64000] [PATCH v2] " Hilton Chain via Guix-patches via
2023-07-22  3:37   ` bug#64000: [PATCH 1/2] " 宋文武 via Guix-patches via

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://guix.gnu.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=2b733f31bea76f91944f8eb4ce4b1ba11f52d668.1686398222.git.hako@ultrarare.space \
    --to=guix-patches@gnu.org \
    --cc=64000@debbugs.gnu.org \
    --cc=hako@ultrarare.space \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/guix.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).