diff options
author | Sharlatan Hellseher <[email protected]> | 2024-12-21 22:59:18 +0000 |
---|---|---|
committer | Sharlatan Hellseher <[email protected]> | 2025-01-21 23:42:12 +0000 |
commit | 4e7a1d3ca8e7f8eca64184dceffb054ad8759a62 (patch) | |
tree | 3b7c35ea0c55f0a25571f721fe90b1cdc6b6eb12 | |
parent | 4f189392785f6699c0aceadb5beb16d1c3e03c98 (diff) |
gnu: esbuild: Adjust input.
* gnu/packages/web.scm (esbuild) [inputs]: Remove go-golang-org-x-sys;
add go-golang-org-x-sys-for-esbuild.
* gnu/packages/golang-build.scm (go-golang-org-x-sys-for-esbuild): New
variable.
Change-Id: I8df379e84d8de4d5adc79a77905e876ebbb928ca
-rw-r--r-- | gnu/packages/golang-build.scm | 18 | ||||
-rw-r--r-- | gnu/packages/web.scm | 2 |
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/") |