summary refs log tree commit diff
diff options
context:
space:
mode:
authorJelle Licht <jlicht@fsfe.org>2020-10-23 22:53:23 +0200
committerJelle Licht <jlicht@fsfe.org>2020-12-04 12:49:02 +0100
commitbf2365b657914efba9dbcf3a43652729c41fb121 (patch)
tree23b05f19b9032f282250aea251c749d4c93398df
parent2ec0a3d18ebe6d4630e5cbfbf1f7c83ab50d0f04 (diff)
downloadguix-bf2365b657914efba9dbcf3a43652729c41fb121.tar.gz
gnu: node: Add node-ms-bootstrap.
* gnu/packages/node.scm (node-ms-bootstrap): New package.
-rw-r--r--gnu/packages/node.scm33
1 files changed, 33 insertions, 0 deletions
diff --git a/gnu/packages/node.scm b/gnu/packages/node.scm
index b726fec8e1..7dc6317d1d 100644
--- a/gnu/packages/node.scm
+++ b/gnu/packages/node.scm
@@ -29,8 +29,10 @@
   #:use-module (guix packages)
   #:use-module (guix derivations)
   #:use-module (guix download)
+  #:use-module (guix git-download)
   #:use-module (guix utils)
   #:use-module (guix build-system gnu)
+  #:use-module (guix build-system node)
   #:use-module (gnu packages)
   #:use-module (gnu packages adns)
   #:use-module (gnu packages base)
@@ -256,6 +258,37 @@ devices.")
 @uref{https://semver.org/, SemVer.org} specification.")
     (license license:isc)))
 
+(define-public node-ms-bootstrap
+  (package
+    (name "node-ms")
+    (version "2.1.2")
+    (source
+     (origin
+       (method git-fetch)
+       (uri (git-reference
+             (url "https://github.com/vercel/ms.git")
+             (commit version)))
+       (file-name (git-file-name name version))
+       (sha256
+        (base32
+         "1pjxzbi4j8pinlsc7yxvfrh0b47kb2dc4lfc2rjq4wx5bdwl33fj"))))
+    (build-system node-build-system)
+    (arguments
+     `(#:node ,node-bootstrap
+       #:tests? #f
+       #:phases
+       (modify-phases
+           %standard-phases
+         (delete 'configure)
+         (delete 'build))))
+    (home-page "https://github.com/zeit/ms#readme")
+    (properties '((hidden? . #t)))
+    (synopsis "Tiny millisecond conversion utility")
+    (description
+     "Use this package to easily convert various time formats to
+milliseconds.")
+    (license license:expat)))
+
 (define-public libnode
   (package
     (inherit node)