From patchwork Tue May 28 09:57:57 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Nicolas Graves X-Patchwork-Id: 27968 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 1A2EB27BBE9; Tue, 28 May 2024 11:00:12 +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=-2.9 required=5.0 tests=BAYES_00,MAILING_LIST_MULTI, SPF_HELO_PASS,URIBL_BLOCKED autolearn=unavailable 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 6C8BE27BBE2 for ; Tue, 28 May 2024 11:00:10 +0100 (BST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sBtca-0004S9-DY; Tue, 28 May 2024 05:59:56 -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 1sBtcY-0004S0-9y for guix-patches@gnu.org; Tue, 28 May 2024 05:59:54 -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 1sBtcY-0001wh-14 for guix-patches@gnu.org; Tue, 28 May 2024 05:59:54 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1sBtch-0006rE-0d for guix-patches@gnu.org; Tue, 28 May 2024 06:00:03 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#71239] [PATCH] gnu: Add emacs-dape. Resent-From: Nicolas Graves Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Tue, 28 May 2024 10:00:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 71239 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 71239@debbugs.gnu.org Cc: ngraves@ngraves.fr X-Debbugs-Original-To: guix-patches@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.171689034326246 (code B ref -1); Tue, 28 May 2024 10:00:02 +0000 Received: (at submit) by debbugs.gnu.org; 28 May 2024 09:59:03 +0000 Received: from localhost ([127.0.0.1]:45711 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sBtbj-0006pG-Ad for submit@debbugs.gnu.org; Tue, 28 May 2024 05:59:03 -0400 Received: from lists.gnu.org ([209.51.188.17]:43324) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sBtbg-0006oq-NT for submit@debbugs.gnu.org; Tue, 28 May 2024 05:59:01 -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 1sBtbX-0004M3-4Q for guix-patches@gnu.org; Tue, 28 May 2024 05:58:51 -0400 Received: from 18.mo581.mail-out.ovh.net ([188.165.56.163]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1sBtax-0001pq-C0 for guix-patches@gnu.org; Tue, 28 May 2024 05:58:19 -0400 Received: from director1.ghost.mail-out.ovh.net (unknown [10.108.17.189]) by mo581.mail-out.ovh.net (Postfix) with ESMTP id 4VpScs1GyWz1LCF for ; Tue, 28 May 2024 09:58:05 +0000 (UTC) Received: from ghost-submission-6684bf9d7b-4pkjc (unknown [10.108.54.121]) by director1.ghost.mail-out.ovh.net (Postfix) with ESMTPS id 487351FE9A; Tue, 28 May 2024 09:58:02 +0000 (UTC) Received: from ngraves.fr ([37.59.142.101]) by ghost-submission-6684bf9d7b-4pkjc with ESMTPSA id GxvXKaqqVWZEcgAAtEeXKg (envelope-from ); Tue, 28 May 2024 09:58:02 +0000 Authentication-Results: garm.ovh; auth=pass (GARM-101G004422002f1-2591-45c0-9372-68246d969a55, 82F8FC4CBDF1420FC49AACA8B22D65D2A430FDE8) smtp.auth=ngraves@ngraves.fr X-OVh-ClientIp: 81.67.146.208 Date: Tue, 28 May 2024 11:57:57 +0200 Message-ID: <20240528095800.20728-1-ngraves@ngraves.fr> X-Mailer: git-send-email 2.41.0 MIME-Version: 1.0 X-Ovh-Tracer-Id: 12298486158845076194 X-VR-SPAMSTATE: OK X-VR-SPAMSCORE: 0 X-VR-SPAMCAUSE: gggruggvucftvghtrhhoucdtuddrgedvledrvdejiedgvdduucetufdoteggodetrfdotffvucfrrhhofhhilhgvmecuqfggjfdpvefjgfevmfevgfenuceurghilhhouhhtmecuhedttdenucenucfjughrpefhvfevufffkffoggfgsedtkeertdertddtnecuhfhrohhmpefpihgtohhlrghsucfirhgrvhgvshcuoehnghhrrghvvghssehnghhrrghvvghsrdhfrheqnecuggftrfgrthhtvghrnhepgfehheegueduheeuveffkeffieektedtleegffejgfdvjeeivdekjeefveekvddunecuffhomhgrihhnpehgihhthhhusgdrtghomhdpshhrrdhhthenucfkphepuddvjedrtddrtddruddpkedurdeijedrudegiedrvddtkedpfeejrdehledrudegvddruddtudenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepihhnvghtpeduvdejrddtrddtrddupdhmrghilhhfrhhomhepnhhgrhgrvhgvshesnhhgrhgrvhgvshdrfhhrpdhnsggprhgtphhtthhopedupdhrtghpthhtohepghhuihigqdhprghttghhvghssehgnhhurdhorhhgpdfovfetjfhoshhtpehmohehkedupdhmohguvgepshhmthhpohhuth Received-SPF: pass client-ip=188.165.56.163; envelope-from=ngraves@ngraves.fr; helo=18.mo581.mail-out.ovh.net X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H4=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 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: , Reply-to: Nicolas Graves X-ACL-Warn: , Nicolas Graves via Guix-patches X-Patchwork-Original-From: Nicolas Graves via Guix-patches via From: Nicolas Graves 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/emacs-xyz.scm (emacs-dape): New variable. Change-Id: Ia07745dd47b2e1e5b85654a5b4b2400dd4c4cc13 --- gnu/packages/emacs-xyz.scm | 52 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 52 insertions(+) diff --git a/gnu/packages/emacs-xyz.scm b/gnu/packages/emacs-xyz.scm index 1c890a5b008..9f93d582f3f 100644 --- a/gnu/packages/emacs-xyz.scm +++ b/gnu/packages/emacs-xyz.scm @@ -31088,6 +31088,58 @@ (define-public emacs-lsp-docker in Docker environment.") (license license:gpl3+)))) +(define-public emacs-dape + (let ((commit "51fad7df7473778fbc4bac703317de7f7713b307") + (revision "0")) + (package + (name "emacs-dape") + (version (git-version "0.12.0" revision commit)) + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/svaante/dape") + (commit commit))) + (file-name (git-file-name name version)) + (sha256 + (base32 "1jics02b9fxjs0lykiv7z924z18id550mqhf6piqzv0sgan91pg2")))) + (build-system emacs-build-system) + (arguments + ;; FIXME python tests pass, JS tests require additional dependencies + ;; See https://lists.sr.ht/~abcdw/rde-devel/patches/51878 + (list #:tests? #f + #:test-command #~'("emacs" "--batch" "-l" "dape.el" + "-l" "dape-tests.el" + "-f" "ert-run-tests-batch-and-exit") + #:phases + #~(modify-phases %standard-phases + (add-after 'unpack 'support-unwrapped-python + (lambda _ + (substitute* "dape.el" + (("command \"python\"") + "command \"python3\"")))) + (add-before 'check 'pre-check + (lambda* (#:key tests? inputs #:allow-other-keys) + (if tests? + (setenv + "PATH" + (string-append + (getenv "PATH") + ":" (dirname (search-input-file inputs "/bin/python3")) + ":" (dirname (search-input-file inputs "/bin/node")))) + (format #t "test suite not run~%"))))))) + (native-inputs (list node-lts python-minimal python-debugpy)) + (propagated-inputs (list emacs-jsonrpc)) + (home-page "https://github.com/svaante/dape") + (synopsis "Debug Adapter Protocol for Emacs") + (description + "Dape is a debug adapter client for Emacs. The debug adapter protocol, +much like its more well-known counterpart, the language server protocol, +aims to establish a common API for programming tools. However, instead of +functionalities such as code completions, it provides a standardized +interface for debuggers.") + (license license:gpl3+)))) + (define-public emacs-dap-mode (package (name "emacs-dap-mode")