diff options
| author | Daniel Khodabakhsh <d@niel.khodabakh.sh> | 2025-06-24 16:18:59 -0700 |
|---|---|---|
| committer | Andreas Enge <andreas@enge.fr> | 2026-01-27 10:39:45 +0100 |
| commit | 6d11b2c0c0119f98817de4eb8e2a45de94cde2c8 (patch) | |
| tree | c389af8cd126428d95f42c112ab5ddd34095435c /gnu | |
| parent | efe368426f50faeed497c533f7d62fa1233c29e0 (diff) | |
gnu: Add node-pretty-ms.
* gnu/packages/node-xyz.scm (node-pretty-ms): New variable.
Change-Id: I77eb83b965af37f31076766d4a0e795e61d64ab7
Signed-off-by: Andreas Enge <andreas@enge.fr>
Diffstat (limited to 'gnu')
| -rw-r--r-- | gnu/packages/node-xyz.scm | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/gnu/packages/node-xyz.scm b/gnu/packages/node-xyz.scm index 00033fa1534..ec94c34044d 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") |
