me
/
guix
Archived
1
0
Fork 0

gnu: node-openzwave-shared: Fix compilation for new versions of node

* gnu/packages/zwave.scm (node-openzwave-shared)[arguments]<#:phases>: Add
patch-compiler phase to allow compilation with node versions 16 and up.
master
Jelle Licht 2023-03-30 14:16:41 +02:00
parent 2c8c582803
commit f963ac4f63
No known key found for this signature in database
GPG Key ID: DA4597F947B41025
1 changed files with 5 additions and 0 deletions

View File

@ -112,6 +112,11 @@ knowledge of the Z-Wave protocol.")
(arguments
`(#:phases
(modify-phases %standard-phases
(add-before 'build 'patch-compiler
(lambda _
(substitute* "binding.gyp"
(("std=c\\+\\+11")
"std=c++17"))))
(replace 'build
;; For some reason, `npm install` doesn't build
;; the addon automatically, so we do it explicitly here.