guix_mirror_bot pushed a commit to branch master
in repository guix.
commit 6d11b2c0c0119f98817de4eb8e2a45de94cde2c8
Author: Daniel Khodabakhsh <[email protected]>
AuthorDate: Tue Jun 24 16:18:59 2025 -0700
gnu: Add node-pretty-ms.
* gnu/packages/node-xyz.scm (node-pretty-ms): New variable.
Change-Id: I77eb83b965af37f31076766d4a0e795e61d64ab7
Signed-off-by: Andreas Enge <[email protected]>
---
gnu/packages/node-xyz.scm | 27 +++++++++++++++++++++++++++
1 file changed, 27 insertions(+)
diff --git a/gnu/packages/node-xyz.scm b/gnu/packages/node-xyz.scm
index 00033fa153..ec94c34044 100644
--- a/gnu/packages/node-xyz.scm
+++ b/gnu/packages/node-xyz.scm
@@ -1440,6 +1440,33 @@ code.")
(home-page (git-reference-url (origin-uri source)))
(license license:isc)))
+(define-public node-pretty-ms
+ (package
+ (name "node-pretty-ms")
+ (version "8.0.0")
+ (source (origin
+ (method git-fetch)
+ (uri (git-reference
+ (url "https://github.com/sindresorhus/pretty-ms")
+ (commit (string-append "v" version))))
+ (file-name (git-file-name name version))
+ (sha256
+ (base32 "08pyb3lmkn1bn8icsi2r9jlkh24mzi39yr9k81p2hlgm46b8wiar"))))
+ (build-system node-build-system)
+ (inputs (list
+ node-parse-ms))
+ (arguments (list
+ #:tests? #f ; FIXME: Tests require 'xo', 'ava', and 'tsd'.
+ #:phases #~(modify-phases %standard-phases
+ (add-before 'patch-dependencies 'modify-package (lambda _
+ (modify-json
+ (delete-dev-dependencies)))))))
+ (synopsis "Milliseconds to humand readable string converter")
+ (description "Convert milliseconds to a human readable string:\
+ `1337000000` → `15d 11h 23m 20s`")
+ (home-page (git-reference-url (origin-uri source)))
+ (license license:expat)))
+
(define-public node-protocol-buffers-schema
(package
(name "node-protocol-buffers-schema")