From patchwork Sat Jun 10 12:16:23 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Hilton Chain X-Patchwork-Id: 50824 Return-Path: X-Original-To: patchwork@mira.cbaines.net Delivered-To: patchwork@mira.cbaines.net Received: by mira.cbaines.net (Postfix, from userid 113) id 75DFD27BBE9; Sat, 10 Jun 2023 13:17:11 +0100 (BST) X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-0.7 required=5.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,FROM_SUSPICIOUS_NTLD,MAILING_LIST_MULTI,PDS_OTHER_BAD_TLD, SPF_HELO_PASS,URIBL_BLOCKED autolearn=no autolearn_force=no version=3.4.6 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mira.cbaines.net (Postfix) with ESMTPS id DBFB827BBE2 for ; Sat, 10 Jun 2023 13:17:10 +0100 (BST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1q7xWl-0007Yx-0I; Sat, 10 Jun 2023 08:17:07 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1q7xWg-0007Yj-6P for guix-patches@gnu.org; Sat, 10 Jun 2023 08:17:02 -0400 Received: from debbugs.gnu.org ([209.51.188.43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1q7xWf-0001n3-Sb for guix-patches@gnu.org; Sat, 10 Jun 2023 08:17:01 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1q7xWf-000240-Nu for guix-patches@gnu.org; Sat, 10 Jun 2023 08:17:01 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#64000] [PATCH 2/2] gnu: tessen: Wrap script. Resent-From: Hilton Chain Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Sat, 10 Jun 2023 12:17:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 64000 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 64000@debbugs.gnu.org Cc: Hilton Chain Received: via spool by 64000-submit@debbugs.gnu.org id=B64000.16863993847883 (code B ref 64000); Sat, 10 Jun 2023 12:17:01 +0000 Received: (at 64000) by debbugs.gnu.org; 10 Jun 2023 12:16:24 +0000 Received: from localhost ([127.0.0.1]:33401 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1q7xW3-000235-KB for submit@debbugs.gnu.org; Sat, 10 Jun 2023 08:16:23 -0400 Received: from mail.boiledscript.com ([144.168.59.46]:46392) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1q7xW2-00022x-0g for 64000@debbugs.gnu.org; Sat, 10 Jun 2023 08:16:22 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ultrarare.space; s=dkim; t=1686399219; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=SSS9VLQZ6QUiVEVnMjaNj559ZoGaQgy6G/qN/lxnJ7M=; b=0c/Tq++WbJ85r1ItN1+ihIzKHqmvQwBtS1nDbj8ukeZaQ1/LPm4b9CDgbrWV7PpBEDKYyN nZt6xnQjwfE3i67iDcDxZFA9WJTmkPav8gx6X9drwiP+Z0mjWHVhoblcUOnR+p2H0CWrlv H3e/pNRAfS7ZRq/IhNhudfXzQeFMCGehCs/WICheSoMLdKLd+cQUo7HeFJOtAgwe2Jz7gF DWrj2dPoUvbMEQwFa5lYYo2Y0wUtAbp0bOdhiqm8KDOK6ElDEmnTE92XWuyJGmX0sXNSb/ LfgSGg0qPVkrrMwYpvMRJTgyKL/cy+uh56Tkoj16WKWCpqndkmRmhX0Ak3yKBA== Date: Sat, 10 Jun 2023 20:16:23 +0800 Message-Id: <2b733f31bea76f91944f8eb4ce4b1ba11f52d668.1686398222.git.hako@ultrarare.space> In-Reply-To: <99bbb7c769098d85f4493a1fbe51fa735fad65bb.1686398222.git.hako@ultrarare.space> References: <99bbb7c769098d85f4493a1fbe51fa735fad65bb.1686398222.git.hako@ultrarare.space> MIME-Version: 1.0 X-Spamd-Bar: -- Authentication-Results: mail.boiledscript.com; auth=pass smtp.mailfrom=hako@ultrarare.space X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-to: Hilton Chain X-ACL-Warn: , Hilton Chain via Guix-patches X-Patchwork-Original-From: Hilton Chain via Guix-patches via From: Hilton Chain Errors-To: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org Sender: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org X-getmail-retrieved-from-mailbox: Patches * 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