summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--gnu/packages/golang-apps.scm58
-rw-r--r--gnu/packages/golang-xyz.scm57
2 files changed, 58 insertions, 57 deletions
diff --git a/gnu/packages/golang-apps.scm b/gnu/packages/golang-apps.scm
index 3337664be7..c0a35c2e2a 100644
--- a/gnu/packages/golang-apps.scm
+++ b/gnu/packages/golang-apps.scm
@@ -26,6 +26,7 @@
#:use-module (gnu packages golang)
#:use-module (gnu packages golang-build)
#:use-module (gnu packages golang-check)
+ #:use-module (gnu packages golang-web)
#:use-module (gnu packages golang-xyz))
;;; Commentary:
@@ -118,6 +119,63 @@ not require a Go toolchain at runtime (except in one very specific case:
import of a 3rd party package at runtime).")
(license license:mpl2.0)))
+(define-public gopls
+ (package
+ (name "gopls")
+ ;; XXX: Starting from 0.14.0 gppls needs golang.org/x/telemetry, which
+ ;; needs to be discussed if it may be included in Guix.
+ (version "0.18.1")
+ (source
+ (origin
+ (method git-fetch)
+ (uri (git-reference
+ (url "https://go.googlesource.com/tools")
+ (commit (go-version->git-ref version #:subdir "gopls"))))
+ (file-name (git-file-name name version))
+ (sha256
+ (base32 "0s396bjwac1acrlpbp7k7xfyhmkykyxc08w6hirbdhlq8vg923p7"))))
+ (build-system go-build-system)
+ (arguments
+ (list
+ #:go go-1.23
+ #:install-source? #f
+ #:import-path "golang.org/x/tools/gopls"
+ #:unpack-path "golang.org/x/tools"
+ ;; XXX: No tests in project's root, limit to some of subdris, try to
+ ;; enable more.
+ #:test-subdirs
+ #~(list "internal/protocol/..."
+ "internal/util/..."
+ "internal/vulncheck/...")
+ #:phases
+ #~(modify-phases %standard-phases
+ (add-before 'unpack 'override-tools
+ (lambda _
+ ;; XXX: Write a procedure deleting all but current module source
+ ;; to cover case with monorepo.
+ (delete-file-recursively "src/golang.org/x/tools"))))))
+ (native-inputs
+ (list go-github-com-google-go-cmp
+ go-github-com-jba-templatecheck
+ go-golang-org-x-mod
+ go-golang-org-x-sync
+ go-golang-org-x-sys
+ go-golang-org-x-telemetry
+ go-golang-org-x-text
+ go-golang-org-x-tools
+ go-golang-org-x-vuln
+ go-gopkg-in-yaml-v3
+ go-honnef-co-go-tools
+ go-mvdan-cc-gofumpt
+ go-mvdan-cc-xurls-v2))
+ (home-page "https://golang.org/x/tools/gopls")
+ (synopsis "Official language server for the Go language")
+ (description
+ "Pronounced ``Go please'', this is the official Go language server
+developed by the Go team. It provides IDE features to any LSP-compatible
+editor.")
+ (license license:bsd-3)))
+
(define-public gore
(package
(name "gore")
diff --git a/gnu/packages/golang-xyz.scm b/gnu/packages/golang-xyz.scm
index c31cc2e5f7..6f4490ecae 100644
--- a/gnu/packages/golang-xyz.scm
+++ b/gnu/packages/golang-xyz.scm
@@ -21171,63 +21171,6 @@ tool."))))
(propagated-inputs '())
(inputs '())))
-(define-public gopls
- (package
- (name "gopls")
- ;; XXX: Starting from 0.14.0 gppls needs golang.org/x/telemetry, which
- ;; needs to be discussed if it may be included in Guix.
- (version "0.18.1")
- (source
- (origin
- (method git-fetch)
- (uri (git-reference
- (url "https://go.googlesource.com/tools")
- (commit (go-version->git-ref version #:subdir "gopls"))))
- (file-name (git-file-name name version))
- (sha256
- (base32 "0s396bjwac1acrlpbp7k7xfyhmkykyxc08w6hirbdhlq8vg923p7"))))
- (build-system go-build-system)
- (arguments
- (list
- #:go go-1.23
- #:install-source? #f
- #:import-path "golang.org/x/tools/gopls"
- #:unpack-path "golang.org/x/tools"
- ;; XXX: No tests in project's root, limit to some of subdris, try to
- ;; enable more.
- #:test-subdirs
- #~(list "internal/protocol/..."
- "internal/util/..."
- "internal/vulncheck/...")
- #:phases
- #~(modify-phases %standard-phases
- (add-before 'unpack 'override-tools
- (lambda _
- ;; XXX: Write a procedure deleting all but current module source
- ;; to cover case with monorepo.
- (delete-file-recursively "src/golang.org/x/tools"))))))
- (native-inputs
- (list go-github-com-google-go-cmp
- go-github-com-jba-templatecheck
- go-golang-org-x-mod
- go-golang-org-x-sync
- go-golang-org-x-sys
- go-golang-org-x-telemetry
- go-golang-org-x-text
- go-golang-org-x-tools
- go-golang-org-x-vuln
- go-gopkg-in-yaml-v3
- go-honnef-co-go-tools
- go-mvdan-cc-gofumpt
- go-mvdan-cc-xurls-v2))
- (home-page "https://golang.org/x/tools/gopls")
- (synopsis "Official language server for the Go language")
- (description
- "Pronounced ``Go please'', this is the official Go language server
-developed by the Go team. It provides IDE features to any LSP-compatible
-editor.")
- (license license:bsd-3)))
-
(define-public misspell
(package
(inherit go-github-com-client9-misspell)