From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms9.migadu.com with LMTPS id YNe8OI5BJGReywAASxT56A (envelope-from ) for ; Wed, 29 Mar 2023 15:47:59 +0200 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id sM9MOI5BJGTjcwAAauVa8A (envelope-from ) for ; Wed, 29 Mar 2023 15:47:58 +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 ADEAD265D0 for ; Wed, 29 Mar 2023 15:47:58 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1phV9r-000780-Uc; Wed, 29 Mar 2023 08:44: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 1phV9n-00076h-13 for guix-patches@gnu.org; Wed, 29 Mar 2023 08:44:05 -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 1phV9m-0001pu-AS for guix-patches@gnu.org; Wed, 29 Mar 2023 08:44:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1phV9m-0004jP-72 for guix-patches@gnu.org; Wed, 29 Mar 2023 08:44:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#62519] [PATCH] gnu: Add emacs-gptel. Resent-From: Rostislav Svoboda Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Wed, 29 Mar 2023 12:44:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 62519 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 62519@debbugs.gnu.org Cc: Rostislav Svoboda X-Debbugs-Original-To: guix-patches@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.168009378218051 (code B ref -1); Wed, 29 Mar 2023 12:44:02 +0000 Received: (at submit) by debbugs.gnu.org; 29 Mar 2023 12:43:02 +0000 Received: from localhost ([127.0.0.1]:51474 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1phV8n-0004gw-H6 for submit@debbugs.gnu.org; Wed, 29 Mar 2023 08:43:01 -0400 Received: from lists.gnu.org ([209.51.188.17]:50714) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1phV8l-0004gi-Tt for submit@debbugs.gnu.org; Wed, 29 Mar 2023 08:43:00 -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 1phV8k-0006op-CX for guix-patches@gnu.org; Wed, 29 Mar 2023 08:42:59 -0400 Received: from mail-ed1-x52c.google.com ([2a00:1450:4864:20::52c]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1phV8i-0001ef-LZ for guix-patches@gnu.org; Wed, 29 Mar 2023 08:42:58 -0400 Received: by mail-ed1-x52c.google.com with SMTP id ek18so62692373edb.6 for ; Wed, 29 Mar 2023 05:42:55 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; t=1680093774; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=VDHt7fPagDAwA4ies+nAWbLMSxqMwE2W34ky6UBPyns=; b=c1sCMbw75OfuBjvZ3Y98DiWNnGcGMIdM32ULZvasW6Bqs9IyRe7hvNx9h4CwCIm/Kh 4+KphmCAwwZy51+6IiF+KWjtw9BxwB4WJ4j8LXSIOEyV45XzBjUaF4GPjOaxZidxS5YY RdV5NiOV0gEaGeQF6xHZJAcNPEHsFDKAqU7yS4SDM09qhnc2R86qAZuUXInU8N9bgSMi WLKag7j0quYzSlN/xr/MAHUBvGh2PrwC0xRm9xqi9/ZbNNwggYabYVADyzX8+FafIXrU i/1Uwp+B3GyZjm11yFLOt6dmpDCcuL1nIg89XXz0DlpzYYKjRR3ws6wd4iRo+HXFZWfr Y0dQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1680093774; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=VDHt7fPagDAwA4ies+nAWbLMSxqMwE2W34ky6UBPyns=; b=T+FeTTk2Mu4EIaQBvwBYkk5EHo20WdjwUvLCNdmXvMy/1njyEwmCtO5XrKBEvGgrNV ntxDlryDRLwZWzHYYzJR/2gbJg0J6/tOvnfdeB0h/dHasRVcodxooYx+VFkotymzZOri YpfsT6HQNBcCPHLTek+ljWawp6rEUWtJQDbJ0MX/uOrOUEp4fyGKhJolJjdfGslC0B3U 52OJ0hpxVWh5MWXngLs5yIUpFd1XkTtTeE4PxVWCciA8RINY32Qd+LLT5cLDOlnmcE0o 0c+bjv1FV/po7OoWuY4xvW70DoOMMD1u7JHkK+puqRi6FyMDXZkLxGOk0e/TKGlr5peE moUg== X-Gm-Message-State: AAQBX9ewhxFXg5n46UPS/INfzNfTx4lFRGDSfP27+tnmZZ4SuMc5xLKJ FSAFzikWQIlYSJJ7H4wspX8N62/VZWk6Kg== X-Google-Smtp-Source: AKy350Y9qlxrB8jXD0ZcKbZiXd1QoV81ogioY9LpVFnCsCr11mXQ5fdi2u8OTHm3nxFKVOq2cWR4hw== X-Received: by 2002:a05:6402:10d4:b0:502:4182:648a with SMTP id p20-20020a05640210d400b005024182648amr2438027edu.9.1680093774161; Wed, 29 Mar 2023 05:42:54 -0700 (PDT) Received: from ecke.fritz.box (dynamic-077-181-056-072.77.181.pool.telefonica.de. [77.181.56.72]) by smtp.googlemail.com with ESMTPSA id c14-20020a509f8e000000b005003fd12eafsm16784445edf.63.2023.03.29.05.42.53 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 29 Mar 2023 05:42:53 -0700 (PDT) From: Rostislav Svoboda X-Google-Original-From: Rostislav Svoboda Date: Wed, 29 Mar 2023 14:42:17 +0200 Message-Id: <20230329124220.7210-1-Rostislav.Svoboda@gmail.com> X-Mailer: git-send-email 2.39.2 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Received-SPF: pass client-ip=2a00:1450:4864:20::52c; envelope-from=rostislav.svoboda@gmail.com; helo=mail-ed1-x52c.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=1680097678; a=rsa-sha256; cv=none; b=ixm2sTC3zbH5cVd8FGCRiOVy8JYLnkwQPLyNMAzcJhjCuvZ4S1Ac67D9Ix8MehVL3i4chX nex9nEgeq9wM0vhGNOOEk62u6qk+iRqsKQdzSSjnTQ41TdEPh+cvuqm9Cm6a27q6PHFGNK XpLt88utS/Q8GI6T9YLtiEz3Nup4HvzNakXJtW1v5hWtd2IyPvGaK3CswHppGE2FzfzKlz yG+q9eh74Z5UoMxiF6robDYkTsDfK9syZ9TfFNuZs5U0JuhdfAZmapQitiMQA51s70jfiA jXiSknUcjps17p+pMJ17uLYxvKrbHZsOINNMq6/hlBVhW3OrtBHx9tI7SoMHYQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20210112 header.b=c1sCMbw7; 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=1680097678; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding:resent-cc: resent-from:resent-sender:resent-message-id:list-id:list-help: list-unsubscribe:list-subscribe:list-post:dkim-signature; bh=VDHt7fPagDAwA4ies+nAWbLMSxqMwE2W34ky6UBPyns=; b=h30wUK/cCWYQyQ/Lobs8P+nQwQLAdPJDLRC27qF2xe+THzAh3L8Wazw1w1DUILt9fwrQMI TE+U/eMHBTysPNZS6MFScp3/S09TTrJ4fdwZaP0dwJ9Ulofu4GTnAhPeaCvFb5ppZZueH0 88o8kw3kuGrUz/G/Oe3bDV92D1l8ts4zFjFJw8vb91YDzJw5CqVQppHLYn4SANfCrORcH/ wmsfJEDCnZ8HOGifX3ceuNIu8CL5DUGej3TNsuIHjmYJ3JcinCL6wy1VZSEPKCjIpB3TpE Q4I7ZA4Ug8CdB/ovuzXe3e0YwJE6CkB+qL6qvVmBk360+TBstfrimT+ZFR6jaw== X-Migadu-Spam-Score: 5.67 X-Spam-Score: 5.67 X-Migadu-Queue-Id: ADEAD265D0 X-Migadu-Scanner: scn0.migadu.com Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20210112 header.b=c1sCMbw7; 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-TUID: tEUBNj68gEEA * gnu/packages/emacs-xyz.scm (emacs-gptel): New variable. --- gnu/packages/emacs-xyz.scm | 38 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) diff --git a/gnu/packages/emacs-xyz.scm b/gnu/packages/emacs-xyz.scm index da2856abc8..d5db2ea499 100644 --- a/gnu/packages/emacs-xyz.scm +++ b/gnu/packages/emacs-xyz.scm @@ -418,6 +418,44 @@ (define-public emacs-geiser e.g. emacs-geiser-guile for Guile.") (license license:bsd-3))) +(define-public emacs-gptel + (let ((commit "1c07a94e18a914ae69ea0061f81fda4bba29afd5") + (revision "0")) + (package + (name "emacs-gptel") + (version (git-version "0.2.5" revision commit)) + (source (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/karthink/gptel") + (commit commit))) + (file-name (git-file-name name version)) + (sha256 + (base32 + "190nrxf6nqmfrsza3vyc51f02hw10wzydi45phkswydjkgsllkmp")))) + (build-system emacs-build-system) + (arguments + (list + #:phases + #~(modify-phases %standard-phases + (add-after 'unpack 'substitute-gptel-use-curl + (lambda* (#:key inputs #:allow-other-keys) + (emacs-substitute-variables "gptel.el" + ("gptel-use-curl" (search-input-file + inputs + "/bin/curl")))))))) + (inputs (list curl)) + (propagated-inputs (list emacs-map)) + (home-page "https://github.com/karthink/gptel") + (synopsis "GPTel is a simple ChatGPT client for Emacs") + (description + "GPTel is a simple, no-frills ChatGPT asynchronous client for Emacs +with no external dependencies. It can interact with ChatGPT from any Emacs +buffer with ChatGPT responses encoded in Markdown or Org markup. It supports +conversations, not just one-off queries and multiple independent sessions. +Requires an OpenAI API key.") + (license license:gpl3+)))) + (define-public emacs-geiser-guile (package (name "emacs-geiser-guile") -- 2.39.2