From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms9.migadu.com with LMTPS id 4E0+GzA2LGRVdQAASxT56A (envelope-from ) for ; Tue, 04 Apr 2023 16:37:36 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id aKByGzA2LGSuZgAA9RJhRA (envelope-from ) for ; Tue, 04 Apr 2023 16:37:36 +0200 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 2158036827 for ; Tue, 4 Apr 2023 16:37:36 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pjhmc-0000QO-KB; Tue, 04 Apr 2023 10:37:14 -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 1pjhmR-0000I0-9b for guix-patches@gnu.org; Tue, 04 Apr 2023 10:37:04 -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 1pjhmQ-0005tJ-PX for guix-patches@gnu.org; Tue, 04 Apr 2023 10:37:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1pjhmQ-0002PB-2h for guix-patches@gnu.org; Tue, 04 Apr 2023 10:37:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#62664] [PATCH] [WIP] gnu: Add emacs-copilot. Resent-From: Rostislav Svoboda Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Tue, 04 Apr 2023 14:37:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 62664 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 62664@debbugs.gnu.org Cc: Nicolas Goaziou X-Debbugs-Original-To: guix-patches@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.16806189929198 (code B ref -1); Tue, 04 Apr 2023 14:37:02 +0000 Received: (at submit) by debbugs.gnu.org; 4 Apr 2023 14:36:32 +0000 Received: from localhost ([127.0.0.1]:49994 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pjhlv-0002OD-PE for submit@debbugs.gnu.org; Tue, 04 Apr 2023 10:36:32 -0400 Received: from lists.gnu.org ([209.51.188.17]:53730) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pjhlu-0002O4-2L for submit@debbugs.gnu.org; Tue, 04 Apr 2023 10:36:30 -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 1pjhls-0007oG-RH for guix-patches@gnu.org; Tue, 04 Apr 2023 10:36:29 -0400 Received: from mail-lf1-x12b.google.com ([2a00:1450:4864:20::12b]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1pjhlq-0005cZ-W1 for guix-patches@gnu.org; Tue, 04 Apr 2023 10:36:28 -0400 Received: by mail-lf1-x12b.google.com with SMTP id q16so42615555lfe.10 for ; Tue, 04 Apr 2023 07:36:25 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; t=1680618984; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=jzij7krnELvY1JbzgmgQ1eAdbyrwHg7AodaHDg9jvT8=; b=jVnVs4SLFnfzYtlKcw0r2bqoGlqJo8JHp+Yf8Ahl8Sl70FB6pXqzDPMHd6upX2mx7z GpTQm4TgilYpE/kRMRN0LlPDStR9skeFeg20uvRYuUkcJ6v+aSHb362K7kMQXVy3m0pR bVRqoDbsIhUtNM4h0z6n7s60GYGbvTELcyot7waTEhxVbwp9t2twgH/CIrUM+pIZ7ILb nHMwVTIlBJD6fVZx8/h4yM7qG1MgqKBYrTTwOkuKB7pCe2Ht4TSTcB9hc/3ddFbTR/zI qnRBMaGzJiY/GQ8Qvkm5fuqPqLOD3tStum7g1maibddcTwFOVJ1XEZdStEF/78IApwX2 Odvg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1680618984; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=jzij7krnELvY1JbzgmgQ1eAdbyrwHg7AodaHDg9jvT8=; b=LdUoQRJd8ZAuNRBy+2fMH7+jzGmhInkalER8/smFTiSxmrComPWjrT+YJBwSxCMZ24 E5Fek+lU2heU2koWysCiksEK/QpEkuGz2+d0Pn/8AuTQ52+9+iV7WxijHUEQLWSD6P0E 7JuSS5diEtHTFFwyROrTUwOLeG0c31rOUOBOs2L4sqdP/7q6EsLYM3XFJW667UPbE1wf M0Am1VDSXIRJxXa0ifiiCwb6ZMPKkqOgZDWwTQLbFmoRrupP9ep2wx6s7DtCGCvqlXXs jEZvFOWuaGT7eXPcn6Ffwzmu3bYS1iddK2a6BLR4lhvA9Jt6NcGMgFy21xehqTDVwjKq NTYg== X-Gm-Message-State: AAQBX9c17LDkSnTpFQGDSQhZfm8JVj2Eth5TqTYa5XnZ9r5vfQ2DEfxE IXSZ43zAYbLRejzoWhzFkC9TKD2R+rwRQdfWw5tWxCtvhQ0= X-Google-Smtp-Source: AKy350Z9ohKqnKvaSSthgnfrtX8lOVLuHQsYXa+GmUC/4F+kn8c52Db076UjXFBAeZjvPQgfVY8isr1ukcKRN20Zoos= X-Received: by 2002:a05:6512:1026:b0:4d5:ca32:7bc5 with SMTP id r6-20020a056512102600b004d5ca327bc5mr813951lfr.12.1680618983333; Tue, 04 Apr 2023 07:36:23 -0700 (PDT) MIME-Version: 1.0 References: <20230404143043.3202-1-Rostislav.Svoboda@gmail.com> In-Reply-To: <20230404143043.3202-1-Rostislav.Svoboda@gmail.com> From: Rostislav Svoboda Date: Tue, 4 Apr 2023 16:35:47 +0200 Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Received-SPF: pass client-ip=2a00:1450:4864:20::12b; envelope-from=rostislav.svoboda@gmail.com; helo=mail-lf1-x12b.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action 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-Country: US X-Migadu-Flow: FLOW_IN ARC-Seal: i=1; s=key1; d=yhetil.org; t=1680619056; a=rsa-sha256; cv=none; b=ojSPwf/KMcSjM1n4MVvgHS3rNQUxSwFb6f8R/WZzeu4dAjLDY8H92G+ZwcA0YCsV6+KX9Y awoisfYGioMuCcdhzqLGH/ORGtyuBd/34+BffzFg/Gj09ogUI6YVmdQ+Yq1iQJGm7m1Ce1 oYpG4CenzxivyA1Y9Wl+AA9YfmbVfNRAOkooIp0neeLZFjcfu60F08GHWyLKk3DvAi289/ SqjquAH1/3yPfhEs+/ddSxoa6fyZ+9UWUgMv55YkxY2q82t8yyaZTI089CGyhsEth53OP9 YBjpfWVKsRHXKwpkKD1RE0sB9iCZsS3pmqn9tH9h+1Fj1vXVkJWOnMSlIJDHHA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20210112 header.b=jVnVs4SL; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (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=1680619056; 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=jzij7krnELvY1JbzgmgQ1eAdbyrwHg7AodaHDg9jvT8=; b=pNEbFpt/L1CariF8Cm+IOex+l8uhVYoHqHofPEHZ7puHrjQgJgsnqNiWfmq1kWvPz+KQVU FHaMj5pA8MKhPd8xEzVo57+Eu/3Agbwee4K4SmYYICVePp7Z9qjbXTTS+k33UxQ2p6BkNL ZVKOFZfiJmhjTiDTGNf2C+R+QLLVnB3CBryJa93BXrxP2TmE73Bak9ohxVqtzeij0TOnH9 eahBfKAMjVWMfTfzXsmG8p0YA96aVTqOUILSvlwzJKWYinSfDRMjq7aGFVTHmn/bkVrUfC Lebc8RDO0HbRqIfJks4CeMQTR7l3RWkVy0tqdsSZHy/V0SgiP8QgsJbtuHIG8Q== X-Migadu-Spam-Score: 7.08 X-Migadu-Scanner: scn1.migadu.com Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20210112 header.b=jVnVs4SL; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (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" X-Spam-Score: 7.08 X-Migadu-Queue-Id: 2158036827 X-TUID: MGCdHw6A/xzT As hinted in the commit message, this patch is Work-In-Progress, waiting for Node v16+ to become available as a Guix package. I.e. this patch is not ready for integration in the upstream, yet However I assume some folks may benefit from it, anyway. Cheers Bost Le mar. 4 avr. 2023 =C3=A0 16:31, Rostislav Svoboda a =C3=A9crit : > > --- > gnu/packages/emacs-xyz.scm | 46 ++++++++++++++++++++++++++++++++++++++ > 1 file changed, 46 insertions(+) > > diff --git a/gnu/packages/emacs-xyz.scm b/gnu/packages/emacs-xyz.scm > index 2b96c60057..d037fa9075 100644 > --- a/gnu/packages/emacs-xyz.scm > +++ b/gnu/packages/emacs-xyz.scm > @@ -36689,6 +36689,52 @@ (define-public emacs-tintin-mode > (description "This major mode focuses on highlighting as many aspe= cts of the TinTin++ scripting language as possible, organizing commands int= o functional categories and highlighting specific modes that many commands = use to accomplish different tasks.") > (license license:asl2.0)))) > > +(define-public emacs-copilot > + (let ((commit "e11847ab0c3b183a1e53fbc1ac587de82912b9cf") > + (revision "0")) > + (package > + (name "emacs-copilot") > + (version (git-version "0" revision commit)) > + (source > + (origin > + (method git-fetch) > + (uri (git-reference > + (url "https://github.com/zerolfx/copilot.el.git") > + (commit commit))) > + (file-name (git-file-name name version)) > + (sha256 > + (base32 > + "0gsxb268vqyim65ag8d7dlgdqyxqrjcjirlnbfbfq0pdr1y2158q")))) > + (build-system emacs-build-system) > + (arguments > + (list > + #:include #~(cons "^dist/" %default-include) > + #:phases > + #~(modify-phases %standard-phases > + (add-after 'unpack 'substitute-copilot-node-executable > + (lambda* (#:key inputs #:allow-other-keys) > + (emacs-substitute-variables "copilot.el" > + ("copilot-node-executable" > +;;; Copilot requires Node 16+, however packaging v16 and/or v18 is not > +;;; trivial. See https://issues.guix.gnu.org/53414, > +;;; https://issues.guix.gnu.org/59188 . > +;;; > +;;; As a hack, download and compile recent Node version manually. > + (format #f "%s/node-v18.15.0/out/Release/node" (geten= v "dev")) ; Remove this line when Node 16+ becomes available as a Guix pack= age. > + ;; (search-input-file inputs "/bin/node") = ; Activate this line when Node 16+ becomes available as a Guix pa= ckage. > + ))))))) > + ;; (inputs (list node)) = ; Activate this line when Node 16+ becomes available as a Guix pa= ckage. > + (propagated-inputs > + (list emacs-dash emacs-editorconfig emacs-s)) > + (home-page > + "https://github.com/zerolfx/copilot.el.git") > + (synopsis "An unofficial Copilot plugin for Emacs") > + (description > + "Copilot.el is an Emacs plugin for GitHub Copilot. This plugin is > +unofficial and based on binaries provided by copilot.vim. Note: You need > +access to GitHub Copilot to use this plugin.") > + (license license:gpl3+)))) > + > ;;; > ;;; Avoid adding new packages to the end of this file. To reduce the cha= nces > ;;; of a merge conflict, place them above by existing packages with simi= lar > -- > 2.39.2 >