mirror of
https://codeberg.org/guix/guix.git
synced 2025-10-02 02:15:12 +00:00
gnu: esbuild-node: Use node-lts instead of node.
* gnu/packages/web.scm (esbuild-node)[#:phases]<build-platform>: Remove workaround needed for building with older versions of Node. [native-inputs]: Replace node by node-lts. Change-Id: Iedf30dc1a395e674007c08ce6c0881dbb0f94f0e
This commit is contained in:
parent
d4caaf2a92
commit
31abde9afa
1 changed files with 2 additions and 8 deletions
|
@ -2128,12 +2128,6 @@ directions.")
|
||||||
(add-after 'build 'build-platform
|
(add-after 'build 'build-platform
|
||||||
(lambda* (#:key unpack-path #:allow-other-keys)
|
(lambda* (#:key unpack-path #:allow-other-keys)
|
||||||
(with-directory-excursion (string-append "src/" unpack-path)
|
(with-directory-excursion (string-append "src/" unpack-path)
|
||||||
;; We're using Node 10, which doesn't have this method.
|
|
||||||
(substitute* "scripts/esbuild.js"
|
|
||||||
(("exports.buildNativeLib" m)
|
|
||||||
(string-append
|
|
||||||
"Object.fromEntries = entries => entries.reduce((result, entry) => (result[entry[0]] = entry[1], result), {});\n"
|
|
||||||
m)))
|
|
||||||
;; Must be writable.
|
;; Must be writable.
|
||||||
(for-each make-file-writable (find-files "." "."))
|
(for-each make-file-writable (find-files "." "."))
|
||||||
(invoke "node" "scripts/esbuild.js"
|
(invoke "node" "scripts/esbuild.js"
|
||||||
|
@ -2156,7 +2150,7 @@ directions.")
|
||||||
(invoke "make" "test-go"))))))))
|
(invoke "make" "test-go"))))))))
|
||||||
(native-inputs
|
(native-inputs
|
||||||
(modify-inputs (package-native-inputs esbuild)
|
(modify-inputs (package-native-inputs esbuild)
|
||||||
(append node)))))
|
(append node-lts)))))
|
||||||
|
|
||||||
(define-public wwwoffle
|
(define-public wwwoffle
|
||||||
(package
|
(package
|
||||||
|
@ -9584,7 +9578,7 @@ the Fediring.")
|
||||||
(build-system python-build-system)
|
(build-system python-build-system)
|
||||||
(propagated-inputs
|
(propagated-inputs
|
||||||
(list curl
|
(list curl
|
||||||
node))
|
node-lts))
|
||||||
(inputs
|
(inputs
|
||||||
(list python
|
(list python
|
||||||
youtube-dl
|
youtube-dl
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue