diff options
| author | Ricardo Wurmus <rekado@elephly.net> | 2017-08-03 15:54:33 +0200 |
|---|---|---|
| committer | Ricardo Wurmus <rekado@elephly.net> | 2017-08-04 11:23:52 +0200 |
| commit | 3f48403aafc3cd6e50c178fb15b6251a40969c07 (patch) | |
| tree | 55f7f2648b1b0ae1d58e8b0bdc5f690a1925d021 /gnu/packages/javascript.scm | |
| parent | 68ffb6c586de4dfd4dd5c972d3481a4243ba8bde (diff) | |
gnu: Add js-strftime.
* gnu/packages/javascript.scm (js-strftime): New variable.
Diffstat (limited to 'gnu/packages/javascript.scm')
| -rw-r--r-- | gnu/packages/javascript.scm | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/gnu/packages/javascript.scm b/gnu/packages/javascript.scm index a806cb0745d..fdf52247461 100644 --- a/gnu/packages/javascript.scm +++ b/gnu/packages/javascript.scm | |||
| @@ -206,3 +206,26 @@ function that uses recursive descent instead of @code{eval}. | |||
| 206 | and DAGs in JSON, and to then recover them. This is a capability that is not | 206 | and DAGs in JSON, and to then recover them. This is a capability that is not |
| 207 | provided by ES5. @code{JSONPath} is used to represent the links.") | 207 | provided by ES5. @code{JSONPath} is used to represent the links.") |
| 208 | (license license:public-domain)))) | 208 | (license license:public-domain)))) |
| 209 | |||
| 210 | (define-public js-strftime | ||
| 211 | (package | ||
| 212 | (name "js-strftime") | ||
| 213 | (version "0.10.0") | ||
| 214 | (source (origin | ||
| 215 | (method url-fetch) | ||
| 216 | (uri (string-append "https://github.com/samsonjs/strftime/" | ||
| 217 | "archive/v" version ".tar.gz")) | ||
| 218 | (file-name (string-append name "-" version ".tar.gz")) | ||
| 219 | (sha256 | ||
| 220 | (base32 | ||
| 221 | "1iya43w7y26y2dp9l4d40bhjc4scb5a9mng5ng5c8hsqr82f1375")))) | ||
| 222 | (build-system minify-build-system) | ||
| 223 | (arguments | ||
| 224 | `(#:javascript-files '("strftime.js"))) | ||
| 225 | (home-page "https://github.com/samsonjs/strftime") | ||
| 226 | (synopsis "Implementation of strftime to JavaScript") | ||
| 227 | (description "This is an implementation of the @code{strftime} procedure | ||
| 228 | for JavaScript. It works in (at least) node.js and browsers. It supports | ||
| 229 | localization and timezones. Most standard specifiers from C are supported as | ||
| 230 | well as some other extensions from Ruby.") | ||
| 231 | (license license:expat))) | ||
