From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1.migadu.com ([2001:41d0:403:58f0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms13.migadu.com with LMTPS id EOO7KGkmzGZWOAAA62LTzQ:P1 (envelope-from ) for ; Mon, 26 Aug 2024 06:53:29 +0000 Received: from aspmx1.migadu.com ([2001:41d0:403:58f0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1.migadu.com with LMTPS id EOO7KGkmzGZWOAAA62LTzQ (envelope-from ) for ; Mon, 26 Aug 2024 08:53:29 +0200 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=debbugs.gnu.org header.s=debbugs-gnu-org header.b="O/0z/jHK"; dkim=fail ("headers rsa verify failed") header.d=inria.fr header.s=dc header.b=qfeFWs3i; dmarc=fail reason="SPF not aligned (relaxed), DKIM not aligned (relaxed)" header.from=inria.fr (policy=none); 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" ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1724655209; 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: content-transfer-encoding:content-transfer-encoding:resent-cc: 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:dkim-signature; bh=qgD+7lit+vpk67u4ctElSwxOsXxQwlNAWtwlwsGfYIo=; b=JGky3clW3WaKL/VMDRojD9YJqickv3eK/4eKB6pr538o5uYoNjPI7b7O3oe2T47v/X2CAA YOJBd62LkLOJE3EzCdlpQReYlTKgot4lNYRJ0F57zHS1z6yNFgw9/Hw+8NQS/C1ykKv68t xSak/w/Pn0yjGBjWg4jcyQ9X3m+LvOfnOUxxtREmyQQem4fHsMJVCzWH0dhpfa4H4ZAO5D cEu3/fHYWAzupxEsZDPK5opG99rESXS7zmo0QROR398B31sqahcGL/S0+/Z4B6YV0r2Adn /Ma8pIiJPKDj/wmsXNUO6j2ZPjAY+9T6wR7IZjM1UuIdEAsiPZICi+WRbzEU/Q== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1724655209; a=rsa-sha256; cv=none; b=tLy44f5sxVZ9wO/aCS+rkwxiqN7n89oRaxO8BcCgWPAAbPJtjVNiC6m0kVsW1A/7qgjURX cw701ModS8sq8VZf2ViZ3osFwHZ4OgGP+fvgzVe7BzpKMwiWnQzVF2evQuRctDP6vB3r+N 8hqePOjgjpgJ32VqxMmtZUDKZDtgEnh4jaAx/3X93kvxmY0YNSCAiRUyJVnK2bCiXP214D cKUZxaqknEO+mEqwQasUBq1bnVq2VM7oLILIuQI8Fa5srzsj9a4yd3xluraw4rgk7QvHMR CGRQpgX994HNXqSRjPIsSOX9yKdJ1euZGxU2CMAn0He1rVn7uI5ENvSAu87MSQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=debbugs.gnu.org header.s=debbugs-gnu-org header.b="O/0z/jHK"; dkim=fail ("headers rsa verify failed") header.d=inria.fr header.s=dc header.b=qfeFWs3i; dmarc=fail reason="SPF not aligned (relaxed), DKIM not aligned (relaxed)" header.from=inria.fr (policy=none); 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" 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 632DFD1E5 for ; Mon, 26 Aug 2024 08:53:29 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1siTbH-0004Mq-QG; Mon, 26 Aug 2024 02:53:16 -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 1siTbE-0004MV-7t for guix-patches@gnu.org; Mon, 26 Aug 2024 02:53:12 -0400 Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1siTbD-0002f8-UQ for guix-patches@gnu.org; Mon, 26 Aug 2024 02:53:11 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=debbugs.gnu.org; s=debbugs-gnu-org; h=In-Reply-To:From:References:MIME-Version:Date:To:Subject; bh=qgD+7lit+vpk67u4ctElSwxOsXxQwlNAWtwlwsGfYIo=; b=O/0z/jHKJB0m6e59rLWfo4hhq/vzb0iFSV/4uRzIog4IfBPuV01PsbXFdLEbZKMOI3b1h9QTdwWMVpRXFiP23PoObHS1qeZjwAAgJMvOxlzKJ7oNkaB0++qAmRxPioubfPqgfBUa6V94JIdQ1E1fWcA/Wp4yii8iU7iln7OhRVgG5oRmR13Rjk9NBD9nAr3iDAHAiwP3FjclMwgO2F1DTRh7W6Ba30F8+Nh15uzBNWj8h81Dg+TsBDEWhMHuQQlfbblYHbBL11S3WJMW4SJKPwss44/T0cwp68s9DNuKyQSYg7RYJoe5hH3jocHedW0VGC5G+MQzRHpBaboODKV00g==; Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1siTc2-0002JM-GT for guix-patches@gnu.org; Mon, 26 Aug 2024 02:54:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#72281] [PATCH] Guix Packager: add copy feature for fetch command Resent-From: Philippe Virouleau Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Mon, 26 Aug 2024 06:54:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 72281 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: Ludovic =?UTF-8?Q?Court=C3=A8s?= , Jakob Kirsch Cc: 72281-done@debbugs.gnu.org Received: via spool by 72281-done@debbugs.gnu.org id=D72281.17246552298854 (code D ref 72281); Mon, 26 Aug 2024 06:54:02 +0000 Received: (at 72281-done) by debbugs.gnu.org; 26 Aug 2024 06:53:49 +0000 Received: from localhost ([127.0.0.1]:43584 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1siTbp-0002Ik-1S for submit@debbugs.gnu.org; Mon, 26 Aug 2024 02:53:49 -0400 Received: from mail3-relais-sop.national.inria.fr ([192.134.164.104]:42929) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1siTbm-0002IT-Lb for 72281-done@debbugs.gnu.org; Mon, 26 Aug 2024 02:53:47 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=inria.fr; s=dc; h=message-id:date:mime-version:subject:to:cc:references: from:in-reply-to:content-transfer-encoding; bh=qgD+7lit+vpk67u4ctElSwxOsXxQwlNAWtwlwsGfYIo=; b=qfeFWs3iam5B1WN4lifSYDb6mgKf8zzMz8uHnxTPlNqXijgGlf+70yhl HE5qqLbgcaOqYg+qpvGIA0DivtKOUzBaMH7mcju3jVxvcsxdrPL+1PqIV CQV4hGjyq3+iFP1TDzBbz0uTs2xxLPpve6oSBQ2sP/AgaNme+FmsM9MIS Y=; X-IronPort-AV: E=Sophos; i="6.10,176,1719871200"; d="scan'208,217"; a="94669547" Received: from lfbn-bor-1-648-194.w86-234.abo.wanadoo.fr (HELO [192.168.1.38]) ([86.234.104.194]) by mail3-relais-sop.national.inria.fr with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 26 Aug 2024 08:52:49 +0200 Message-ID: Date: Mon, 26 Aug 2024 08:52:48 +0200 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird References: <20240724222709.6417-1-jakob.kirsch@web.de> <87r0akvfl4.fsf@gnu.org> Content-Language: en-US From: Philippe Virouleau In-Reply-To: <87r0akvfl4.fsf@gnu.org> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit 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-bounces+larch=yhetil.org@gnu.org X-Migadu-Flow: FLOW_IN X-Migadu-Country: US X-Migadu-Spam-Score: -7.40 X-Spam-Score: -7.40 X-Migadu-Queue-Id: 632DFD1E5 X-Migadu-Scanner: mx11.migadu.com X-TUID: GSo2JVvq8/AK Hi Ludo and Jakob, Thanks a lot, that looks great to me :) Regards, Philippe On 8/19/24 14:53, Ludovic Courtès wrote: > Hello, > > (Cc: Philippe, the author of Guix Packager.) > > Jakob Kirsch skribis: > >> --- >> src/components/inputs/SourceInput.tsx | 7 +++++-- >> 1 file changed, 5 insertions(+), 2 deletions(-) >> >> diff --git a/src/components/inputs/SourceInput.tsx b/src/components/inputs/SourceInput.tsx >> index aa1b714..2f67425 100644 >> --- a/src/components/inputs/SourceInput.tsx >> +++ b/src/components/inputs/SourceInput.tsx >> @@ -136,9 +136,12 @@ function HashHelp({ method, url, version }: { >> method: Method, url: UrlType, version: string >> }) { >> return ( >> -
>> +
> + onClick={() => { >> + navigator.clipboard.writeText(getFetchHelp(method, url, version)) >> + }}> >> >> - You may compute the sha256 by running the following command(s): >> + You may compute the sha256 by running the following command(s) (click to copy): > > I took the liberty to apply this patch and it’s now deployed: > > https://guix-hpc.gitlabpages.inria.fr/guix-packager/ > > Philippe, lemme know if anything needs to be tweaked. :-) > > Thanks for your contribution! > > Ludo’.