guix-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

15/19: gnu: node-openzwave-shared: Fix compilation for new versions of n


From: guix-commits
Subject: 15/19: gnu: node-openzwave-shared: Fix compilation for new versions of node
Date: Sat, 6 May 2023 07:56:26 -0400 (EDT)

jlicht pushed a commit to branch master
in repository guix.

commit f963ac4f63918507f7adec6590162d5c4b47c040
Author: Jelle Licht <jlicht@fsfe.org>
AuthorDate: Thu Mar 30 14:16:41 2023 +0200

    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.
---
 gnu/packages/zwave.scm | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/gnu/packages/zwave.scm b/gnu/packages/zwave.scm
index 3e99bd7687..a30199ec02 100644
--- a/gnu/packages/zwave.scm
+++ b/gnu/packages/zwave.scm
@@ -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.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]