Archived
1
0
Fork 0

gnu: nheko: Fix build.

* gnu/packages/messaging.scm (nheko)[arguments]: Use G-expressions.
This commit is contained in:
Nicolas Goaziou 2022-01-22 01:08:24 +01:00
parent 98a322e02e
commit f997af9c6f
No known key found for this signature in database
GPG key ID: DA00B4F048E92F2D

View file

@ -2349,9 +2349,10 @@ for the Matrix protocol. It is built on to of @code{Boost.Asio}.")
'(begin
(delete-file-recursively "third_party")))))
(arguments
`(#:tests? #f ;no test target
(list
#:tests? #f ;no test target
#:configure-flags
'("-DCMAKE_BUILD_TYPE=Release"
#~(list "-DCMAKE_BUILD_TYPE=Release"
"-DBUILD_DOCS=ON"
;; Fix required because we are using a static SingleApplication
"-DCMAKE_CXX_FLAGS= \"-DQAPPLICATION_CLASS=QApplication\" "
@ -2359,10 +2360,10 @@ for the Matrix protocol. It is built on to of @code{Boost.Asio}.")
;; it, when you update Qt. That's fine for us.
"-DCOMPILE_QML=ON")
#:phases
(modify-phases %standard-phases
#~(modify-phases %standard-phases
(add-after 'unpack 'unbundle-dependencies
(lambda* (#:key inputs #:allow-other-keys)
(let ((single-app (assoc-ref inputs "single-application")))
(lambda _
(let ((single-app #$(this-package-input "single-application-qt5")))
(substitute* "CMakeLists.txt"
;; Remove include and source dirs,replace with the correct one
(("third_party/blurhash/blurhash.cpp") "")
@ -2381,10 +2382,9 @@ for the Matrix protocol. It is built on to of @code{Boost.Asio}.")
;; Make Qt deterministic.
(setenv "QT_RCC_SOURCE_DATE_OVERRIDE" "1")))
(add-after 'install 'wrap-program
(lambda* (#:key inputs outputs #:allow-other-keys)
(let ((out (assoc-ref outputs "out"))
(gst-plugin-path (getenv "GST_PLUGIN_SYSTEM_PATH")))
(wrap-program (string-append out "/bin/nheko")
(lambda _
(let ((gst-plugin-path (getenv "GST_PLUGIN_SYSTEM_PATH")))
(wrap-program (string-append #$output "/bin/nheko")
`("GST_PLUGIN_SYSTEM_PATH" ":" prefix (,gst-plugin-path)))))))))
(build-system qt-build-system)
(inputs