From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id cNGLN0Vt7mGfAAAAgWs5BA (envelope-from ) for ; Mon, 24 Jan 2022 10:11:33 +0100 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id ACf0NEVt7mE9OQEA9RJhRA (envelope-from ) for ; Mon, 24 Jan 2022 10:11:33 +0100 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 943272C589 for ; Mon, 24 Jan 2022 10:11:33 +0100 (CET) Received: from localhost ([::1]:49078 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nBvNs-0001pa-Pq for larch@yhetil.org; Mon, 24 Jan 2022 04:11:32 -0500 Received: from eggs.gnu.org ([209.51.188.92]:58794) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nBvNQ-0001g9-5v for guix-patches@gnu.org; Mon, 24 Jan 2022 04:11:04 -0500 Received: from debbugs.gnu.org ([209.51.188.43]:49132) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nBvNO-0004Ka-Bt for guix-patches@gnu.org; Mon, 24 Jan 2022 04:11:03 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1nBvNO-0002zD-8O for guix-patches@gnu.org; Mon, 24 Jan 2022 04:11:02 -0500 Subject: bug#53270: [PATCH] gnu: Add yubikey-oath-dmenu. Resent-From: Ludovic =?UTF-8?Q?Court=C3=A8s?= Original-Sender: "Debbugs-submit" Resent-To: guix-patches@gnu.org Resent-Date: Mon, 24 Jan 2022 09:11:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: cc-closed 53270 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: John Kehayias Cc: "53270@debbugs.gnu.org" <53270-done@debbugs.gnu.org>, Maxime Devos Mail-Followup-To: 53270@debbugs.gnu.org, ludo@gnu.org, john.kehayias@protonmail.com Received: via spool by 53270-done@debbugs.gnu.org id=D53270.164301541011400 (code D ref 53270); Mon, 24 Jan 2022 09:11:02 +0000 Received: (at 53270-done) by debbugs.gnu.org; 24 Jan 2022 09:10:10 +0000 Received: from localhost ([127.0.0.1]:42033 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nBvMY-0002xo-CD for submit@debbugs.gnu.org; Mon, 24 Jan 2022 04:10:10 -0500 Received: from hera.aquilenet.fr ([185.233.100.1]:41750) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nBvMX-0002wr-4c for 53270-done@debbugs.gnu.org; Mon, 24 Jan 2022 04:10:09 -0500 Received: from localhost (localhost [127.0.0.1]) by hera.aquilenet.fr (Postfix) with ESMTP id 7C56C2FE; Mon, 24 Jan 2022 10:10:02 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at aquilenet.fr Received: from hera.aquilenet.fr ([127.0.0.1]) by localhost (hera.aquilenet.fr [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 8aR-rq55mICc; Mon, 24 Jan 2022 10:10:01 +0100 (CET) Received: from ribbon (91-160-117-201.subs.proxad.net [91.160.117.201]) by hera.aquilenet.fr (Postfix) with ESMTPSA id 467322F; Mon, 24 Jan 2022 10:10:01 +0100 (CET) From: Ludovic =?UTF-8?Q?Court=C3=A8s?= References: <3d5ccfc962993cc5d5af18e49feb23e3c14765ca.camel@telenet.be> Date: Mon, 24 Jan 2022 10:10:00 +0100 In-Reply-To: (John Kehayias's message of "Sat, 15 Jan 2022 19:52:50 +0000") Message-ID: <8735ldxzx3.fsf_-_@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.2 (gnu/linux) MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" X-Spamd-Bar: / X-Rspamd-Server: hera X-Rspamd-Queue-Id: 7C56C2FE X-Spamd-Result: default: False [-0.10 / 15.00]; ARC_NA(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; FROM_HAS_DN(0.00)[]; RCPT_COUNT_THREE(0.00)[3]; FREEMAIL_ENVRCPT(0.00)[protonmail.com]; TO_MATCH_ENVRCPT_ALL(0.00)[]; MIME_GOOD(-0.10)[multipart/mixed,text/plain,text/x-patch]; TO_DN_ALL(0.00)[]; FREEMAIL_TO(0.00)[protonmail.com]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+,1:+,2:+]; RCVD_COUNT_TWO(0.00)[2]; RCVD_TLS_ALL(0.00)[]; MID_RHS_MATCH_FROM(0.00)[] 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: , Errors-To: guix-patches-bounces+larch=yhetil.org@gnu.org Sender: "Guix-patches" X-Migadu-Flow: FLOW_IN X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1643015493; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type:resent-to:resent-from:resent-sender: resent-message-id:in-reply-to:in-reply-to:references:references: list-id:list-help:list-unsubscribe:list-subscribe:list-post; bh=ngBIOIGMkqA/S8ma/ObT5qPD3THnCaYyTJwT2DajlsQ=; b=aANBIBXyKfmlzZmR0ye9Xm4H8AHV1cv7q7IgIgBtUtYhs0yci2VBRFhU5TERuw/RryKs3I cshfCVEIT/QUzejaqyGcdUSbskToGuM3tuqqiB+XqlB1ZeayveoxtzxJcZ+1GwtpuWZ0PX UHP53LHpnx3r1cirAoiZc28L98A+4S78nEae2U+jwxqv05CgIJ+gInEN8/csC1EYa2t2FH +4RpqwOoVnsppxuugDzaN/Sa0rfglT/aOXqUFg4b45FED1SEyB96dICfos8KEnRx9Dy9vD a9k2yeLifrFNvvzpYWsVCC6n0/+yt+99BoIqz+qcgk8F35QH8jS7FOJ0owUJQg== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1643015493; a=rsa-sha256; cv=none; b=iH9DMQGt9zSvGMh+EPSZx4810qH4fcVQBgkA/WD+E/RvPlPcIx4XV83DtlaBgBCpFVLdia LnQtPiETbbTwzCownLM/+Np5JdYWHsI5hqivGlfzWBy0RrkXsX166GM72QRdb0ZGWrpRo1 VHtv1kUR9QFKpukhlE+jBFxoM1aW/oS8gPQ/djUPAn3H/NpH/G1fTFSkrpW4BETNwSpqlS vwsoBp5K5hMT0CZxvCOQqoqw9/VDL7Tc7eGQWdT6pNtAI9/hCMVE4XDpqpgGFHwiWybXnv WWSrSroALovIElamLRx693uV9NLYL+f0p9yIyToPooQg+rAiagFA4dKEflj4WA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=none; dmarc=pass (policy=none) header.from=gnu.org; spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org" X-Migadu-Spam-Score: -3.43 Authentication-Results: aspmx1.migadu.com; dkim=none; dmarc=pass (policy=none) header.from=gnu.org; spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org" X-Migadu-Queue-Id: 943272C589 X-Spam-Score: -3.43 X-Migadu-Scanner: scn0.migadu.com X-TUID: lpKo5E0wxNOB --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Hi, John Kehayias skribis: > From a5958b588cebd23012d7d9cbeb8f1e22a3802ea2 Mon Sep 17 00:00:00 2001 > From: John Kehayias > Date: Fri, 14 Jan 2022 16:11:47 -0500 > Subject: [PATCH] gnu: Add yubikey-oath-dmenu. > > * gnu/packages/security-token.scm (yubikey-oath-dmenu): New variable. Applied. I took the liberty to make the change below, to avoid using a non-literal string as the =E2=80=98substitute*=E2=80=99 pattern (it=E2=80= =99s possible to use a non-literal string but more error prone). Thanks John and Maxime! Ludo=E2=80=99. --=-=-= Content-Type: text/x-patch Content-Disposition: inline diff --git a/gnu/packages/security-token.scm b/gnu/packages/security-token.scm index b2f9f83ba2..8190e1e1e2 100644 --- a/gnu/packages/security-token.scm +++ b/gnu/packages/security-token.scm @@ -471,14 +471,12 @@ (define-public yubikey-oath-dmenu (delete 'build) ; or build (add-after 'unpack 'fix-paths (lambda* (#:key inputs #:allow-other-keys) - (for-each (lambda (tool) - (substitute* "yubikey-oath-dmenu.py" - (((string-append "'" tool)) - (string-append - "'" - (search-input-file inputs - (string-append "/bin/" tool)))))) - (list "dmenu" "notify-send" "wl-copy" "xclip" "xdotool")))) + (substitute* "yubikey-oath-dmenu.py" + (("'(dmenu|notify-send|wl-copy|xclip|xdotool)" _ tool) + (string-append + "'" + (search-input-file inputs + (string-append "/bin/" tool))))))) (replace 'install (lambda _ (invoke "make" "install" --=-=-=--