From patchwork Tue Mar 11 19:00:46 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Grigory Shepelev X-Patchwork-Id: 41160 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 26EC327BBEA; Wed, 2 Apr 2025 11:31:20 +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=-7.6 required=5.0 tests=BAYES_00,DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED,DKIM_VALID,FREEMAIL_FROM,MAILING_LIST_MULTI, RCVD_IN_DNSWL_BLOCKED,RCVD_IN_MSPIKE_H2,RCVD_IN_VALIDITY_CERTIFIED, RCVD_IN_VALIDITY_RPBL,RCVD_IN_VALIDITY_SAFE,SPF_HELO_PASS, URIBL_BLOCKED autolearn=ham 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 82BB427BBE2 for ; Wed, 2 Apr 2025 11:31:19 +0100 (BST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tzvNB-0006uf-FR; Wed, 02 Apr 2025 06:31:05 -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 1tzvNA-0006u1-6r for guix-patches@gnu.org; Wed, 02 Apr 2025 06:31:04 -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 1tzvN9-0007at-MR for guix-patches@gnu.org; Wed, 02 Apr 2025 06:31:03 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=debbugs.gnu.org; s=debbugs-gnu-org; h=MIME-Version:Date:From:To:Subject; bh=w9TG7n0Vaa5YEMAZup+xFL8+gYP6WSKKSkT6SfitmGA=; b=rnAjXH+TmuVh3UNsD8Y6aoAEoahe+cvUZ/Odu87QU0u5z65lI36dgedQeilJ5/zUd2ns2ECtqYYqYBrFeXLm3p9dgfSLNCOxm12TQBU2U1y4J7FF97gJfsUis/xHM4Gc1ye5RaCatwGryA6644Lt45NaVgnM6NX2+7S4vi/kI9jpT5ujXet8O4TwE0J9n7NC64FBGG0UdEQdWR7UwiZ0TvIyTfVpY6UBLNtl9RD0IE2DhiJea672KNwQPd3lszvUa+L1zRaoXL5UI80YAh2WE0Fnt4N7RbrGm0+Y7FaFOXNlIwAxKwL/B+gzInBsacOM8KLKShYTCTx+6PaORFYsRQ==; Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1tzvN8-0004h7-LU for guix-patches@gnu.org; Wed, 02 Apr 2025 06:31:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#77453] [PATCH] gnu: Add sbcl-alive-lsp. Resent-From: Grigory Shepelev Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Wed, 02 Apr 2025 10:31:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 77453 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 77453@debbugs.gnu.org X-Debbugs-Original-To: guix-patches@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.174358980617341 (code B ref -1); Wed, 02 Apr 2025 10:31:02 +0000 Received: (at submit) by debbugs.gnu.org; 2 Apr 2025 10:30:06 +0000 Received: from localhost ([127.0.0.1]:55158 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tzvMC-0004VB-Be for submit@debbugs.gnu.org; Wed, 02 Apr 2025 06:30:06 -0400 Received: from lists.gnu.org ([2001:470:142::17]:42746) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1tzvM9-0004TF-47 for submit@debbugs.gnu.org; Wed, 02 Apr 2025 06:30:02 -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 1tzvLv-0006jC-P0 for guix-patches@gnu.org; Wed, 02 Apr 2025 06:29:49 -0400 Received: from mail-lf1-x129.google.com ([2a00:1450:4864:20::129]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1tzvLt-00068g-WA for guix-patches@gnu.org; Wed, 02 Apr 2025 06:29:47 -0400 Received: by mail-lf1-x129.google.com with SMTP id 2adb3069b0e04-549b116321aso7604158e87.3 for ; Wed, 02 Apr 2025 03:29:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1743589784; x=1744194584; darn=gnu.org; h=content-transfer-encoding:mime-version:message-id:change-id:date :subject:to:from:from:to:cc:subject:date:message-id:reply-to; bh=w9TG7n0Vaa5YEMAZup+xFL8+gYP6WSKKSkT6SfitmGA=; b=fhKjl1EgmSDCUzFvgwXj832GzVWHLqi4jybTlCLdHyiAggGIo65j5DouXnfuAWDzpe mDT5Hd18yu+7NKG/wAReOw2AqKuWLeJmDUT0BzRhPJ5ydUrag46ANg9O+fYGgugzli9S M1STTGV0wB/XFuZ9w5u1xFZmt/1Hz2rGhUeWTAGVgkBFbuHoeuII4jBkyR48nSl5VQrE eBwdlk2GP1bOPG0gSJOCPxOyoNsI9B/fW7UsM41BCybzOAs1grebxIZE4XJNLYf8CUIR v1D4rPX3DZ0znBa7hx9oyNpfSbQxNffjCv+AdR6QVV1b1bzwneJIjIWVpVbq0TLGWAcF w9Jw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1743589784; x=1744194584; h=content-transfer-encoding:mime-version:message-id:change-id:date :subject:to:from:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=w9TG7n0Vaa5YEMAZup+xFL8+gYP6WSKKSkT6SfitmGA=; b=k0vI2/KU74TbCJb05EWQH/+yqvCxtGET+KodUXAOPjKecl+xoSGKhaTGoJqcoR1cyh 6Bqz+6zlK+yOOpZMoCUNlh99UF3JvVZs6MeOZxSIduHF5+sY41rul9rfg5b66SfzBZqA d5rVAQGrK8SxO0E+ldLCLOfjeICl4A/ECjhhus1eAzLxXZgQ5tcq/V/A369UA4ely2Ta XZWH6sHw8l8CTHh1+iQ9c0x+aAYNsZwMr98cGdzWI3mRxDyNtgcsUbEJ7HhzmtqMLF3n x1gDdSs7MzpThHb1LM7/R+sJFrotaw1tifQ/xwVZJ8VXsCyfo4S8MF09rmUAI/OKHwwE wH7g== X-Gm-Message-State: AOJu0YyDJvp4QAC+Dk2OQyKygjHpfqTHGu+/WgfVMFpoYOGsW92nte65 mDeLU3Z6sJw1MOgKYIWBtTq8QrJst/2bqAccGliabTcMYl66hE3W8dxY6WT5 X-Gm-Gg: ASbGncstppUeYWxGmBByrvhRzm43w9yETYiddOJ2NrwkGynA/QbmtK5pjn1A45w0ei4 n5Dn/kl8kghlgB2ZLoQzJbKp+FOogoBBjG/Un5eORNIGrHRk+sJsvURFlmuNp8QZpGEmMhGQbN5 J1PH9J23wuAECjsPCR7WVSGylQkvnMdv2JK69V8mnklBy3kzgRVBordJIQ2YJymrWzeVUcwUrVY Z8srFpc9c+ofpudXN6HhVqzA16PO18z7edpWqqOVl9NGRpXpJ+4bCUZ1pKhBzEJzxBr+KUDbY1C gb/1OBmlUEof3uTJ5JznpHC4G4g4ZTB9zuVAVNs= X-Google-Smtp-Source: AGHT+IGkdSo3BCvBRLggY5FiOOzEnOp92g27Ob3c1yR+IxeNSptJch/UfJ/X3XUb0JLINHQVZhUxtA== X-Received: by 2002:a05:6512:3d0d:b0:549:8963:eb05 with SMTP id 2adb3069b0e04-54b11112874mr4066802e87.37.1743589783419; Wed, 02 Apr 2025 03:29:43 -0700 (PDT) Received: from localhost ([82.151.112.249]) by smtp.gmail.com with ESMTPSA id 2adb3069b0e04-54b095915c5sm1585687e87.202.2025.04.02.03.29.40 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 02 Apr 2025 03:29:42 -0700 (PDT) From: Grigory Shepelev Date: Tue, 11 Mar 2025 22:00:46 +0300 Change-Id: If1025a803846f1d43854788401463cefca04c5f6 Message-ID: <87bjte97qt.fsf@gmail.com> MIME-Version: 1.0 Received-SPF: pass client-ip=2a00:1450:4864:20::129; envelope-from=shegeley@gmail.com; helo=mail-lf1-x129.google.com X-Spam_score_int: 13 X-Spam_score: 1.3 X-Spam_bar: + X-Spam_report: (1.3 / 5.0 requ) BAYES_00=-1.9, DATE_IN_PAST_96_XX=3.405, 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=no 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+patchwork=mira.cbaines.net@gnu.org Sender: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org X-getmail-retrieved-from-mailbox: Patches 1. sbcl-package->ecl-package fails with: «Component #:SB-INTROSPECT not found, required by #» 2. Can be used with emacs-lsp. Requires override. Example: #+begin_src elisp (require 'lsp) (defun lsp-lisp-alive-start-ls () "Start the alive-lsp." (interactive) (when-let (((lsp--port-available "localhost" lsp-lisp-alive-port))) (lsp-async-start-process #'ignore #'ignore (executable-find "guix") guix-exe "shell" "sbcl" "sbcl-alive-lsp" ;; "-D" "-f" "guix.scm" ;; when working on some sbcl project packed in guix "--" "sbcl" "--eval" "(require :asdf)" "--eval" "(asdf:load-system :alive-lsp)" "--eval" (format "(alive/server::start :port %s)" lsp-lisp-alive-port)))) (lsp-lisp-alive-start-ls) #+end_src --- gnu/packages/lisp-xyz.scm | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) -- 2.48.1 Message-ID: <87ecya97th.fsf@gmail.com> diff --git a/gnu/packages/lisp-xyz.scm b/gnu/packages/lisp-xyz.scm index 58e7f948ad..4c9a53c3cb 100644 --- a/gnu/packages/lisp-xyz.scm +++ b/gnu/packages/lisp-xyz.scm @@ -31778,6 +31778,35 @@ (define-public cl-usocket (define-public ecl-usocket (sbcl-package->ecl-package sbcl-usocket)) +(define-public sbcl-alive-lsp + (package + (name "sbcl-alive-lsp") + (version "0.0.1") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/nobody-famous/alive-lsp") + (commit "491251c2897d9251d04301061065e2c23171f6a0"))) + (file-name (git-file-name "sbcl-alive-lsp" version)) + (sha256 + (base32 "112zk8hkg71h7bbdmqfgxqblccb2bs8wcl6f7nrjjm1hy3cf1919")))) + (build-system asdf-build-system/sbcl) + (inputs + (list + sbcl-usocket + sbcl-cl-json + sbcl-bordeaux-threads + sbcl-flexi-streams)) + (home-page "https://github.com/nobody-famous/alive-lsp") + (synopsis "Common Lisp LSP: Alive") + (description "This is the language server for Alive: + The Average Lisp VSCode Environment.") + (license license:unlicense))) + +(define-public cl-alive-lsp + (sbcl-package->cl-source-package sbcl-alive-lsp)) + (define-public sbcl-utf8-input-stream (let ((commit "d33b57a4d439c2f0877e5513be45eb6940d92c68") (revision "0"))