summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--gnu/packages/golang-build.scm18
-rw-r--r--gnu/packages/web.scm2
2 files changed, 19 insertions, 1 deletions
diff --git a/gnu/packages/golang-build.scm b/gnu/packages/golang-build.scm
index b20437fa8d..950138f9e0 100644
--- a/gnu/packages/golang-build.scm
+++ b/gnu/packages/golang-build.scm
@@ -798,6 +798,24 @@ low-level interaction with the operating system.")
(native-inputs '())
(propagated-inputs '()))))
+;; This is the only one dependency for esbuild, which is the main tool to
+;; produce all Node packages, keep it away from other golang.
+(define-public go-golang-org-x-sys-for-esbuild
+ (hidden-package
+ (package
+ (inherit go-golang-org-x-sys)
+ (name "go-golang-org-x-sys")
+ (version "0.25.0")
+ (source
+ (origin
+ (method git-fetch)
+ (uri (git-reference
+ (url "https://go.googlesource.com/sys")
+ (commit (string-append "v" version))))
+ (file-name (git-file-name name version))
+ (sha256
+ (base32 "0hdysrba8imiifb4ksjgbhkzhk1mksm1g3fj59i3bas1zdc5lbgp")))))))
+
(define-public go-golang-org-x-telemetry
(package
(name "go-golang-org-x-telemetry")
diff --git a/gnu/packages/web.scm b/gnu/packages/web.scm
index b781c13b62..2c46517f83 100644
--- a/gnu/packages/web.scm
+++ b/gnu/packages/web.scm
@@ -1998,7 +1998,7 @@ UTS#46.")
(invoke "make" "test-go")))
#t)))))
(inputs
- `(("golang.org/x/sys" ,go-golang-org-x-sys)))
+ `(("golang.org/x/sys" ,go-golang-org-x-sys-for-esbuild)))
(native-inputs
`(("github.com/kylelemons/godebug" ,go-github-com-kylelemons-godebug)))
(home-page "https://esbuild.github.io/")