summary refs log tree commit diff
path: root/gnu/packages/jami.scm
diff options
context:
space:
mode:
authorMaxim Cournoyer <maxim.cournoyer@gmail.com>2022-01-14 16:53:44 -0500
committerMaxim Cournoyer <maxim.cournoyer@gmail.com>2022-01-14 17:36:13 -0500
commitbd872a6f7505d13d59c7c32009913dbfd4cb81f9 (patch)
treed91c9bbb22ec236c1924baa4685b166c58524517 /gnu/packages/jami.scm
parent9d5f14751fb209411872f202a8712ac84bec333e (diff)
downloadguix-bd872a6f7505d13d59c7c32009913dbfd4cb81f9.tar.gz
gnu: jami: Fix version string.
* gnu/packages/jami.scm (jami)[phases]{fix-version-string}: New phase.
Diffstat (limited to 'gnu/packages/jami.scm')
-rw-r--r--gnu/packages/jami.scm11
1 files changed, 10 insertions, 1 deletions
diff --git a/gnu/packages/jami.scm b/gnu/packages/jami.scm
index 72282bc68e..b0d9479ba2 100644
--- a/gnu/packages/jami.scm
+++ b/gnu/packages/jami.scm
@@ -572,7 +572,16 @@ decentralized calling using P2P-DHT.")
          (add-after 'unpack 'change-directory/maybe
            (lambda _
              ;; Allow building from the tarball or a git checkout.
-             (false-if-exception (chdir "client-qt")))))))
+             (false-if-exception (chdir "client-qt"))))
+         (add-after 'change-directory/maybe 'fix-version-string
+           (lambda _
+             (substitute* "src/version.h"
+               (("VERSION_STRING")
+                "BUILD_DATE")           ;to avoid a redefinition error
+               (("// clang-format on.*" anchor)
+                (string-append "const char VERSION_STRING[] = \""
+                               ,version "\";\n"
+                               anchor))))))))
     (native-inputs
      (list pkg-config python qttools doxygen graphviz))
     (inputs