From debbugs-submit-bounces@debbugs.gnu.org Fri Mar 19 21:22:55 2021 Received: (at submit) by debbugs.gnu.org; 20 Mar 2021 01:22:56 +0000 Received: from localhost ([127.0.0.1]:51234 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lNQKN-0007Jc-IN for submit@debbugs.gnu.org; Fri, 19 Mar 2021 21:22:55 -0400 Received: from lists.gnu.org ([209.51.188.17]:55440) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lNQKJ-0007JQ-5F for submit@debbugs.gnu.org; Fri, 19 Mar 2021 21:22:53 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:44064) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lNQKI-0008Rt-Eo for guix-patches@gnu.org; Fri, 19 Mar 2021 21:22:50 -0400 Received: from aibo.runbox.com ([91.220.196.211]:42998) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lNQKE-0003Q1-Ui for guix-patches@gnu.org; Fri, 19 Mar 2021 21:22:50 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=runbox.com; s=selector2; h=Message-Id:Date:Subject:To:From:MIME-Version: Content-Transfer-Encoding:Content-Type; bh=BSlSg7S0Uo5wjaJeWJ9oJnI20pnRBbIz+39tXs30j2E=; b=mFfRC9Hi/pQw2V79zQWvvJURRX L7i5lYmQcSbBpkGmgsAlQZ+rqgzT/EuVgdlSJHYrl0jQLhLw5y0jBgfVeqoV8LoXO/aDEt0RAxKlX QVf4H/cYD9j5NKFFznzDeSWrjgDF6hj5tl61WAmtSz2J0/3QHRhqlUrU/BdgTi7nwiWMcJYHYtZw1 B6QRvzJ1ynTm0A42BAZQcpp2IjLnC5j6soIl35v0lNfuGKpatUlWZDBgb09uPXCLJVYq2WhzTen8B Z5TKzrH3y43fRDWDZlFqLYNPOyvPZlx4b/EHNPOYupmsQCc8kG5qkzR/IuDwGlFuSS5pJOIdpgWnb B5q7VQrg==; Received: from [10.9.9.127] (helo=rmmprod05.runbox) by mailtransmit02.runbox with esmtp (Exim 4.86_2) (envelope-from ) id 1lNQKB-0000jW-6L for guix-patches@gnu.org; Sat, 20 Mar 2021 02:22:43 +0100 Received: from mail by rmmprod05.runbox with local (Exim 4.86_2) (envelope-from ) id 1lNQKB-00070N-5Q for guix-patches@gnu.org; Sat, 20 Mar 2021 02:22:43 +0100 Content-Type: text/plain; charset="utf-8" Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Received: from [Authenticated alias (952555)] by runbox.com with http (RMM6); for ; Sat, 20 Mar 2021 01:22:43 GMT From: "K I" To: "guix-patches" Subject: mtxclient -> 0.4.1 Nheko -> 0.8.1 Date: Fri, 19 Mar 2021 19:22:43 -0600 (MDT) X-RMM-Aliasid: 952555 X-Mailer: RMM6 Message-Id: Received-SPF: pass client-ip=91.220.196.211; envelope-from=gitlabcanada@runbox.com; helo=aibo.runbox.com X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, UNPARSEABLE_RELAY=0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: 0.5 (/) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -2.4 (--) Hello, I do not know my way around git so I am offering this code to someone if th= ey want to add it to guix proper. There were only slight changes needed. Both packages built and ran for me. (define-public mtxclient (package (name "mtxclient") (version "0.4.1") (source (origin (method git-fetch) (uri (git-reference (url "https://github.com/Nheko-Reborn/mtxclient") (commit (string-append "v" version)))) (file-name (git-file-name name version)) (sha256 (base32 "1044zil3izhb3whhfjah7w0kg5mr3hys32cjffky681d3mb3wi5n")))) (arguments `(#:configure-flags (list ;; Disable example binaries (not installed) "-DBUILD_LIB_EXAMPLES=3DOFF") #:phases (modify-phases %standard-phases (add-before 'configure 'disable-network-tests (lambda _ (substitute* "CMakeLists.txt" (("add_test\\((BasicConnectivity|ClientAPI|MediaAPI|Encrypti= on|Pushrules)") "# add_test")) #t)) (add-before 'configure 'set-home (lambda _ ;; Tries to create package registry file ;; So, set HOME. (setenv "HOME" "/tmp") #t))))) (build-system cmake-build-system) (inputs `(("boost" ,boost) ("json-modern-cxx" ,json-modern-cxx) ("libolm" ,libolm) ("libsodium" ,libsodium) ("openssl" ,openssl) ("spdlog" ,spdlog) ("zlib" ,zlib))) (native-inputs `(("googletest" ,googletest) ("pkg-config" ,pkg-config))) (home-page "https://github.com/Nheko-Reborn/mtxclient") (synopsis "Client API library for the Matrix protocol") (description "@code{mtxclient} is a C++ library that implements client = API for the Matrix protocol. It is built on to of @code{Boost.Asio}.") (license license:expat))) (define-public nheko (package (name "nheko") (version "0.8.1") (source (origin (method git-fetch) (uri (git-reference (url "https://github.com/Nheko-Reborn/nheko") (commit (string-append "v" version)))) (file-name (git-file-name name version)) (sha256 (base32 "1v7k3ifzi05fdr06hmws1wkfl1bmhrnam3dbwahp086vkj0r8524")))) (arguments `(#:tests? #f ;no test target #:configure-flags (list "-DCMAKE_BUILD_TYPE=3DRelease" "-DCMAKE_CXX_FLAGS=3D-fpermissive") #:phases (modify-phases %standard-phases (add-after 'unpack 'remove-Werror (lambda _ (substitute* "CMakeLists.txt" (("-Werror") "")) #t)) (add-after 'unpack 'fix-determinism (lambda _ ;; Make Qt deterministic. (setenv "QT_RCC_SOURCE_DATE_OVERRIDE" "1") #t))))) (build-system qt-build-system) (inputs `(("boost" ,boost) ("cmark" ,cmark) ("json-modern-cxx" ,json-modern-cxx) ("libolm" ,libolm) ("lmdb" ,lmdb) ("lmdbxx" ,lmdbxx) ("mtxclient-new" ,mtxclient-new) ("openssl" ,openssl) ("qtbase" ,qtbase) ("qtdeclarative" ,qtdeclarative) ("qtgraphicaleffects" ,qtgraphicaleffects) ("qtkeychain" ,qtkeychain) ("qtmultimedia" ,qtmultimedia) ("qtquickcontrols2" ,qtquickcontrols2) ("qtsvg" ,qtsvg) ("spdlog" ,spdlog) ("tweeny" ,tweeny) ("zlib" ,zlib))) (native-inputs `(("pkg-config" ,pkg-config) ("qtlinguist" ,qttools))) (home-page "https://github.com/Nheko-Reborn/nheko") (synopsis "Desktop client for Matrix using Qt and C++14") (description "@code{Nheko} want to provide a native desktop app for the Matrix protocol that feels more like a mainstream chat app and less like an= IRC client. There is support for: @itemize @item E2E encryption (text messages only: attachments are currently sent un= encrypted). @item User registration. @item Creating, joining & leaving rooms. @item Sending & receiving invites. @item Sending & receiving files and emoji. @item Typing notifications. @item Username auto-completion. @item Message & mention notifications. @item Redacting messages. @item Read receipts. @item Basic communities support. @item Room switcher (@key{ctrl-K}). @item Light, Dark & System themes. @end itemize") (license license:gpl3+)))=