mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2024-12-25 22:08:16 -05:00
gnu: Add node-serialport.
* gnu/packages/node-xyz.scm (node-serialport): New variable. Signed-off-by: Liliana Marie Prikler <liliana.prikler@gmail.com>
This commit is contained in:
parent
84e811ca0f
commit
d94608bc13
1 changed files with 33 additions and 0 deletions
|
@ -1270,3 +1270,36 @@ (define-public node-serialport-stream
|
|||
Node.js Stream API. The stream is a duplex stream, allowing for reading and
|
||||
writing. It has additional methods for managing the SerialPort
|
||||
connection.")))
|
||||
|
||||
(define-public node-serialport
|
||||
(package
|
||||
(inherit node-serialport-binding-abstract)
|
||||
(name "node-serialport")
|
||||
(version "9.2.7")
|
||||
(inputs
|
||||
(list node-serialport-bindings
|
||||
node-serialport-parser-delimiter
|
||||
node-serialport-parser-readline
|
||||
node-serialport-parser-regex
|
||||
node-serialport-parser-ready
|
||||
node-serialport-parser-inter-byte-timeout
|
||||
node-serialport-parser-cctalk
|
||||
node-serialport-parser-byte-length
|
||||
node-serialport-stream
|
||||
node-debug))
|
||||
(arguments
|
||||
`(#:phases
|
||||
(modify-phases %standard-phases
|
||||
(add-after 'patch-dependencies 'delete-dependencies
|
||||
(lambda args
|
||||
(delete-dependencies `("@serialport/binding-mock"))
|
||||
))
|
||||
(add-after 'unpack 'chdir
|
||||
(lambda args
|
||||
(chdir "packages/serialport"))))
|
||||
#:tests? #f))
|
||||
(synopsis "Node.js package to access serial ports")
|
||||
(description "Node SerialPort is a modular suite of Node.js packages for
|
||||
accessing serial ports. This package is the recommended entry point for most
|
||||
projects. It combines a high-level Node.js stream interface with a useful
|
||||
default set of parsers and bindings.")))
|
||||
|
|
Loading…
Reference in a new issue