me
/
guix
Archived
1
0
Fork 0

gnu: jami: Fix version string.

* gnu/packages/jami.scm (jami)[phases]{fix-version-string}: New phase.
Maxim Cournoyer 2022-01-14 16:53:44 -05:00
parent 9d5f14751f
commit bd872a6f75
No known key found for this signature in database
GPG Key ID: 1260E46482E63562
1 changed files with 10 additions and 1 deletions

View File

@ -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