aboutsummaryrefslogtreecommitdiff
path: root/gnu/packages
diff options
context:
space:
mode:
authorNicolas Graves <ngraves@ngraves.fr>2022-07-20 12:11:02 +0200
committerMarius Bakke <marius@gnu.org>2022-07-20 16:50:08 +0200
commit9b8567e29390aa1e8cb842138de879e5de4378b0 (patch)
treea7595d9d91bb9fa2ad631a78bdf6331e2fa23be0 /gnu/packages
parent9ae6dd7aa586ee702c7089e619376ca24920388e (diff)
downloadguix-9b8567e29390aa1e8cb842138de879e5de4378b0.tar.gz
guix-9b8567e29390aa1e8cb842138de879e5de4378b0.zip
gnu: Add node-ieee754.
* gnu/packages/node-xyz.scm (node-ieee754): New variable. Signed-off-by: Marius Bakke <marius@gnu.org>
Diffstat (limited to 'gnu/packages')
-rw-r--r--gnu/packages/node-xyz.scm27
1 files changed, 27 insertions, 0 deletions
diff --git a/gnu/packages/node-xyz.scm b/gnu/packages/node-xyz.scm
index 4ed1334abc..0deb680669 100644
--- a/gnu/packages/node-xyz.scm
+++ b/gnu/packages/node-xyz.scm
@@ -450,6 +450,33 @@ Subsequent calls will either return the cached previous value or throw an error
if desired.")
(license license:isc)))
+(define-public node-ieee754
+ (package
+ (name "node-ieee754")
+ (version "1.2.1")
+ (source (origin
+ (method git-fetch)
+ (uri (git-reference
+ (url "https://github.com/feross/ieee754")
+ (commit (string-append "v" version))))
+ (file-name (git-file-name name version))
+ (sha256
+ (base32
+ "19rlg59lavnwsvbblhvrqwinz2wzqlxhddqpwrc3cyqkscjgza7i"))))
+ (build-system node-build-system)
+ (arguments
+ '(#:tests? #f
+ #:phases (modify-phases %standard-phases
+ (replace 'configure
+ (lambda _
+ (invoke "npm" "--offline" "--ignore-scripts" "install"
+ "--production"))))))
+ (home-page "https://github.com/feross/ieee754")
+ (synopsis "Read/write IEEE754 floating point numbers in Javascript")
+ (description "This package can read and write IEEE754 floating point
+numbers from/to a Buffer or array-like object in Javascript.")
+ (license license:bsd-3)))
+
(define-public node-inherits
(package
(name "node-inherits")