unofficial mirror of guix-patches@gnu.org 
 help / color / mirror / code / Atom feed
From: "\( via Guix-patches" via <guix-patches@gnu.org>
To: 56908@debbugs.gnu.org
Cc: "\(" <paren@disroot.org>
Subject: [bug#56908] [PATCH] gnu: packages: Add gopls.
Date: Wed,  3 Aug 2022 12:43:55 +0100	[thread overview]
Message-ID: <20220803114355.13792-1-paren@disroot.org> (raw)

* gnu/packages/golang.scm (gopls): New variable.
---
 gnu/packages/golang.scm | 20 ++++++++++++++++++++
 1 file changed, 20 insertions(+)

diff --git a/gnu/packages/golang.scm b/gnu/packages/golang.scm
index 1ce55875d8..4756bcb249 100644
--- a/gnu/packages/golang.scm
+++ b/gnu/packages/golang.scm
@@ -35,6 +35,7 @@
 ;;; Copyright © 2021 Lu Hui <luhux76@gmail.com>
 ;;; Copyright © 2022 Pier-Hugues Pellerin <phpellerin@gmail.com>
 ;;; Copyright © 2022 muradm <mail@muradm.net>
+;;; Copyright © 2022 ( <paren@disroot.org>
 ;;;
 ;;; This file is part of GNU Guix.
 ;;;
@@ -9891,3 +9892,22 @@ (define-public go-github-com-sourcegraph-jsonrpc2
     (description
      "Package jsonrpc2 provides a Go implementation of JSON-RPC 2.0.")
     (license license:expat)))
+
+(define-public gopls
+  (package
+   (inherit go-golang-org-x-tools)
+   (name "gopls")
+   (arguments
+    (list #:unpack-path "golang.org/x/tools"
+          #:import-path "golang.org/x/tools/gopls"
+          #:install-source? #f))
+   (propagated-inputs
+    (modify-inputs (package-propagated-inputs
+                    go-golang-org-x-tools)
+      (prepend go-golang-org-x-sync)))
+   (synopsis "Go language server implementation")
+   (description
+    "This package provides the @acronym{LSP, Language Server Protocol}
+server implementation for the Go programming language. It provides
+on-the-fly code linting, formatting, completion, and introspection for
+Go code in text editors supporting LSP.")))
-- 
2.37.1





             reply	other threads:[~2022-08-03 11:46 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-08-03 11:43 ( via Guix-patches via [this message]
2022-08-04 17:35 ` [bug#56908] [PATCH v2] gnu: packages: Add gopls ( via Guix-patches via
2022-08-04 17:37   ` ( via Guix-patches via
2022-08-14 12:41 ` [bug#56908] [PATCH v3] gnu: " ( via Guix-patches via
2022-08-14 13:52   ` ( via Guix-patches via

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://guix.gnu.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20220803114355.13792-1-paren@disroot.org \
    --to=guix-patches@gnu.org \
    --cc=56908@debbugs.gnu.org \
    --cc=paren@disroot.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/guix.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).