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
parent
2c8c582803
commit
f963ac4f63
|
@ -112,6 +112,11 @@ knowledge of the Z-Wave protocol.")
|
||||||
(arguments
|
(arguments
|
||||||
`(#:phases
|
`(#:phases
|
||||||
(modify-phases %standard-phases
|
(modify-phases %standard-phases
|
||||||
|
(add-before 'build 'patch-compiler
|
||||||
|
(lambda _
|
||||||
|
(substitute* "binding.gyp"
|
||||||
|
(("std=c\\+\\+11")
|
||||||
|
"std=c++17"))))
|
||||||
(replace 'build
|
(replace 'build
|
||||||
;; For some reason, `npm install` doesn't build
|
;; For some reason, `npm install` doesn't build
|
||||||
;; the addon automatically, so we do it explicitly here.
|
;; the addon automatically, so we do it explicitly here.
|
||||||
|
|
Reference in New Issue