[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
09/11: gnu: Add Node LTS.
From: |
Marius Bakke |
Subject: |
09/11: gnu: Add Node LTS. |
Date: |
Tue, 25 Sep 2018 18:40:23 -0400 (EDT) |
mbakke pushed a commit to branch master
in repository guix.
commit e789b85841aa013c4f6bd18f4dff99b30bf0b3a4
Author: Marius Bakke <address@hidden>
Date: Sun Sep 23 13:12:23 2018 +0200
gnu: Add Node LTS.
* gnu/packages/node.scm (node)[arguments]: Adjust 'patch-files' phase to
ignore missing files.
(node-lts): New public variable.
---
gnu/packages/node.scm | 28 +++++++++++++++++++++++++---
1 file changed, 25 insertions(+), 3 deletions(-)
diff --git a/gnu/packages/node.scm b/gnu/packages/node.scm
index de7d59c..b525804 100644
--- a/gnu/packages/node.scm
+++ b/gnu/packages/node.scm
@@ -5,6 +5,7 @@
;;; Copyright © 2016 Ludovic Courtès <address@hidden>
;;; Copyright © 2017 Mike Gerwitz <address@hidden>
;;; Copyright © 2018 Tobias Geerinckx-Rice <address@hidden>
+;;; Copyright © 2018 Marius Bakke <address@hidden>
;;;
;;; This file is part of GNU Guix.
;;;
@@ -86,6 +87,14 @@
(modify-phases %standard-phases
(add-before 'configure 'patch-files
(lambda* (#:key inputs #:allow-other-keys)
+
+ ;; This phase is inherited by Node LTS, which does not have all
+ ;; the files listed here. Use this helper for convenience.
+ (define (delete-if-exists file)
+ (if (file-exists? file)
+ (delete-file file)
+ '()))
+
;; Fix hardcoded /bin/sh references.
(substitute* '("lib/child_process.js"
"lib/internal/v8_prof_polyfill.js"
@@ -103,7 +112,7 @@
;; FIXME: These tests depend on being able to install eslint.
;; See https://github.com/nodejs/node/issues/17098.
- (for-each delete-file
+ (for-each delete-if-exists
'("test/parallel/test-eslint-alphabetize-errors.js"
"test/parallel/test-eslint-buffer-constructor.js"
"test/parallel/test-eslint-documented-errors.js"
@@ -111,7 +120,7 @@
;; FIXME: These tests fail in the build container, but they don't
;; seem to be indicative of real problems in practice.
- (for-each delete-file
+ (for-each delete-if-exists
'("test/async-hooks/test-ttywrap.readstream.js"
"test/parallel/test-util-inspect.js"
"test/parallel/test-v8-serdes.js"
@@ -130,7 +139,7 @@
;; TLS certificates that are bundled with the source. We want
this
;; package to be reproducible forever, so remove those.
;; TODO: Regenerate certs instead.
- (for-each delete-file
+ (for-each delete-if-exists
'("test/parallel/test-tls-passphrase.js"
"test/parallel/test-tls-server-verify.js"))
#t))
@@ -188,3 +197,16 @@ devices.")
(home-page "https://nodejs.org/")
(license expat)
(properties '((timeout . 3600))))) ; 1 h
+
+(define-public node-lts
+ (package
+ (inherit node)
+ (name "node-lts")
+ (version "8.12.0")
+ (source (origin
+ (inherit (package-source node))
+ (uri (string-append "https://nodejs.org/dist/v" version
+ "/node-v" version ".tar.xz"))
+ (sha256
+ (base32
+ "16j1rrxkhmvpcw689ndw1raql1gz4jqn7n82z55zn63c05cgz7as"))))))
- branch master updated (88268a3 -> 3b97a17), Marius Bakke, 2018/09/25
- 03/11: gnu: enchant: Don't build libenchant.a., Marius Bakke, 2018/09/25
- 01/11: git-download: Don't assume the working directory is the parent of ".git"., Marius Bakke, 2018/09/25
- 02/11: gnu: enchant: Update home page., Marius Bakke, 2018/09/25
- 08/11: gnu: node: Delete expired tests., Marius Bakke, 2018/09/25
- 04/11: gnu: enchant: Propagate Glib., Marius Bakke, 2018/09/25
- 09/11: gnu: Add Node LTS.,
Marius Bakke <=
- 06/11: gnu: gspell: Update to 1.8.1., Marius Bakke, 2018/09/25
- 05/11: gnu: enchant: Update to 2.2.3., Marius Bakke, 2018/09/25
- 07/11: gnu: webkitgtk: Remove obsolete phase., Marius Bakke, 2018/09/25
- 10/11: gnu: varnish: Use absolute file name of "rm"., Marius Bakke, 2018/09/25
- 11/11: services: Add Varnish service., Marius Bakke, 2018/09/25