From patchwork Thu Aug 4 17:35:45 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: "\\(" X-Patchwork-Id: 41272 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 2E1D927BBEA; Thu, 4 Aug 2022 18:36:18 +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.7 required=5.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,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 E805127BBE9 for ; Thu, 4 Aug 2022 18:36:17 +0100 (BST) Received: from localhost ([::1]:58954 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oJeld-0005qV-2I for patchwork@mira.cbaines.net; Thu, 04 Aug 2022 13:36:17 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:53164) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oJelO-0005nx-KV for guix-patches@gnu.org; Thu, 04 Aug 2022 13:36:03 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:36816) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oJelO-0003Qc-BT for guix-patches@gnu.org; Thu, 04 Aug 2022 13:36:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1oJelO-00052x-3R for guix-patches@gnu.org; Thu, 04 Aug 2022 13:36:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#56908] [PATCH v2] gnu: packages: Add gopls. References: <20220803114355.13792-1-paren@disroot.org> In-Reply-To: <20220803114355.13792-1-paren@disroot.org> Resent-From: "(" Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Thu, 04 Aug 2022 17:36:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 56908 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 56908@debbugs.gnu.org Cc: "\(" Received: via spool by 56908-submit@debbugs.gnu.org id=B56908.165963455519387 (code B ref 56908); Thu, 04 Aug 2022 17:36:02 +0000 Received: (at 56908) by debbugs.gnu.org; 4 Aug 2022 17:35:55 +0000 Received: from localhost ([127.0.0.1]:54798 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oJelH-00052d-87 for submit@debbugs.gnu.org; Thu, 04 Aug 2022 13:35:55 -0400 Received: from knopi.disroot.org ([178.21.23.139]:42234) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oJelE-00052U-Tz for 56908@debbugs.gnu.org; Thu, 04 Aug 2022 13:35:53 -0400 Received: from localhost (localhost [127.0.0.1]) by disroot.org (Postfix) with ESMTP id 9949340E5A; Thu, 4 Aug 2022 19:35:51 +0200 (CEST) X-Virus-Scanned: SPAM Filter at disroot.org Received: from knopi.disroot.org ([127.0.0.1]) by localhost (disroot.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id AXJlHr4ktAt8; Thu, 4 Aug 2022 19:35:50 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=disroot.org; s=mail; t=1659634550; bh=CP6j1nKHL1hF02isKoQEMBlLOLdA6E3S8lSm6YQzTzY=; h=From:To:Cc:Subject:Date; b=cEB3LE8V3GcziZ2f943afDlWIVUPK5BJcAB2JwnCVQg4YmuOihaqJ9eqZiF1Ies16 Vx/OII3Q0brkfR18/L7/ihmVTTvKxd5iwgZsbEb57kvSaj2JpiRblRXcWLEwZkuz/U sFBHbv+frcV5lSgVKMME+yB7Oeadw36Jaz6EVuifTLFMSnhuYVBcLFVHScngxP+lau 6MvZ0p90gzLGnwsnRXVm96C3VivAqR+JT0mrNUW2UUDBBIjXeq2BTo+bBD7GL9nmJR a5iyvZqU8d5pJT51Ojc2hwiyFjAjB0HJT8uYBPVs/M6aFrawGoBlhOXTVlDj1hgHYd lJPolxEJYFj9w== Date: Thu, 4 Aug 2022 18:35:45 +0100 Message-Id: <20220804173545.2274-1-paren@disroot.org> Mime-Version: 1.0 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" Reply-to: "\(" X-ACL-Warn: , "\( via Guix-patches" X-Patchwork-Original-From: "\( via Guix-patches" via From: "\\(" X-getmail-retrieved-from-mailbox: Patches * gnu/packages/golang.scm (gopls): New variable. --- gnu/packages/golang.scm | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/gnu/packages/golang.scm b/gnu/packages/golang.scm index 1ce55875d8..68fd8630a2 100644 --- a/gnu/packages/golang.scm +++ b/gnu/packages/golang.scm @@ -35,6 +35,7 @@ ;;; Copyright © 2021 Lu Hui ;;; Copyright © 2022 Pier-Hugues Pellerin ;;; Copyright © 2022 muradm +;;; Copyright © 2022 ( ;;; ;;; This file is part of GNU Guix. ;;; @@ -9891,3 +9892,19 @@ (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)) + (inputs (list 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.")))