From 40e95ccc476e96f6e8a49705bb529e76d6948326 Mon Sep 17 00:00:00 2001 From: Peter Hoeg Date: Fri, 13 Jan 2023 10:18:32 +0800 Subject: [PATCH 1/3] coeurl: 0.2.1 -> 0.3.0 (cherry picked from commit eb9c77b03d2b1f6d366938bf15dc391971128659) --- pkgs/development/libraries/coeurl/default.nix | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/pkgs/development/libraries/coeurl/default.nix b/pkgs/development/libraries/coeurl/default.nix index 40712e8beddd..4d04abee3adc 100644 --- a/pkgs/development/libraries/coeurl/default.nix +++ b/pkgs/development/libraries/coeurl/default.nix @@ -11,17 +11,18 @@ stdenv.mkDerivation rec { pname = "coeurl"; - version = "0.2.1"; + version = "0.3.0"; src = fetchFromGitLab { domain = "nheko.im"; owner = "nheko-reborn"; repo = pname; rev = "v${version}"; - sha256 = "sha256-+FIxi019+jnjpo4NhBQ4tb3ObLrEStMN5YD+MrTLa2E="; + hash = "sha256-sN+YSddUOdnJLcnHyWdjNm1PpxCwnkwiqSvyrwUrg6w="; }; nativeBuildInputs = [ ninja pkg-config meson ]; + buildInputs = [ libevent curl spdlog ]; meta = with lib; { From b96e89c6e497c8ac58cdcbe0c3362fc756b475ab Mon Sep 17 00:00:00 2001 From: Peter Hoeg Date: Fri, 13 Jan 2023 10:19:02 +0800 Subject: [PATCH 2/3] mtxclient: 0.8.2 -> 0.9.0 (cherry picked from commit 479a3d283f712152660258edc40d26a937ebda7b) --- .../libraries/mtxclient/default.nix | 30 +++++++++++-------- 1 file changed, 17 insertions(+), 13 deletions(-) diff --git a/pkgs/development/libraries/mtxclient/default.nix b/pkgs/development/libraries/mtxclient/default.nix index 7f4585c640e1..7513614a51e8 100644 --- a/pkgs/development/libraries/mtxclient/default.nix +++ b/pkgs/development/libraries/mtxclient/default.nix @@ -1,26 +1,28 @@ -{ lib, stdenv +{ lib +, stdenv , fetchFromGitHub , fetchpatch , cmake , pkg-config -, openssl -, olm -, spdlog -, nlohmann_json , coeurl -, libevent , curl +, libevent +, nlohmann_json +, olm +, openssl +, re2 +, spdlog }: stdenv.mkDerivation rec { pname = "mtxclient"; - version = "0.8.2"; + version = "0.9.0"; src = fetchFromGitHub { owner = "Nheko-Reborn"; repo = "mtxclient"; rev = "v${version}"; - sha256 = "sha256-x2c+wZWAWYoKxSqEezoInw3SwcGo9dQNDvuq7racLBA="; + hash = "sha256-39tdTY2emN3/FxZxwl6dcQn1bOgybws166wqFPJl68M="; }; postPatch = '' @@ -39,14 +41,16 @@ stdenv.mkDerivation rec { cmake pkg-config ]; + buildInputs = [ - spdlog - nlohmann_json - openssl - olm coeurl - libevent curl + libevent + nlohmann_json + olm + openssl + re2 + spdlog ]; meta = with lib; { From 95353342b8faa558f5b40de3ca951cf30531e94c Mon Sep 17 00:00:00 2001 From: Peter Hoeg Date: Fri, 13 Jan 2023 10:19:18 +0800 Subject: [PATCH 3/3] nheko: 0.10.2 -> 0.11.0 (cherry picked from commit a6276cce2180a7e0a9456734ca12f9abfbb0e628) --- .../instant-messengers/nheko/default.nix | 80 ++++++++++--------- 1 file changed, 41 insertions(+), 39 deletions(-) diff --git a/pkgs/applications/networking/instant-messengers/nheko/default.nix b/pkgs/applications/networking/instant-messengers/nheko/default.nix index 50d68eeeba1c..901d476dc62c 100644 --- a/pkgs/applications/networking/instant-messengers/nheko/default.nix +++ b/pkgs/applications/networking/instant-messengers/nheko/default.nix @@ -1,30 +1,31 @@ { lib , stdenv +, mkDerivation , fetchFromGitHub , cmake , asciidoc +, pkg-config +, boost17x , cmark +, coeurl +, curl +, libevent +, libsecret , lmdb , lmdbxx -, libsecret -, mkDerivation +, mtxclient +, nlohmann_json +, olm , qtbase +, qtgraphicaleffects +, qtimageformats , qtkeychain , qtmacextras , qtmultimedia -, qtimageformats -, qttools , qtquickcontrols2 -, qtgraphicaleffects -, mtxclient -, boost17x +, qttools +, re2 , spdlog -, olm -, pkg-config -, nlohmann_json -, coeurl -, libevent -, curl , voipSupport ? true , gst_all_1 , libnice @@ -32,49 +33,50 @@ mkDerivation rec { pname = "nheko"; - version = "0.10.2"; + version = "0.11.0"; src = fetchFromGitHub { owner = "Nheko-Reborn"; repo = "nheko"; rev = "v${version}"; - sha256 = "sha256-gid8XOZ1/hMDGNbse4GYfcAdqHiySWyy4isBgcpekIQ="; + hash = "sha256-4Xe3eRnDkgyYB+hUP8TBWTt+m29HVtgcqVEQUUsIpCY="; }; nativeBuildInputs = [ - lmdbxx - cmake - pkg-config asciidoc + cmake + lmdbxx + pkg-config ]; buildInputs = [ - nlohmann_json - mtxclient - olm boost17x + cmark + coeurl + curl + libevent libsecret lmdb - spdlog - cmark + mtxclient + nlohmann_json + olm qtbase - qtmultimedia - qtimageformats - qttools - qtquickcontrols2 qtgraphicaleffects + qtimageformats qtkeychain - coeurl - libevent - curl + qtmultimedia + qtquickcontrols2 + qttools + re2 + spdlog ] ++ lib.optional stdenv.isDarwin qtmacextras - ++ lib.optionals voipSupport (with gst_all_1; [ - gstreamer - gst-plugins-base - (gst-plugins-good.override { qt5Support = true; }) - gst-plugins-bad - libnice - ]); + ++ lib.optionals voipSupport (with gst_all_1; [ + gstreamer + gst-plugins-base + (gst-plugins-good.override { qt5Support = true; }) + gst-plugins-bad + libnice + ]); cmakeFlags = [ "-DCOMPILE_QML=ON" # see https://github.com/Nheko-Reborn/nheko/issues/389 @@ -88,11 +90,11 @@ mkDerivation rec { meta = with lib; { description = "Desktop client for the Matrix protocol"; homepage = "https://github.com/Nheko-Reborn/nheko"; + license = licenses.gpl3Plus; maintainers = with maintainers; [ ekleog fpletz ]; platforms = platforms.all; # Should be fixable if a higher clang version is used, see: # https://github.com/NixOS/nixpkgs/pull/85922#issuecomment-619287177 - broken = stdenv.targetPlatform.isDarwin; - license = licenses.gpl3Plus; + broken = stdenv.hostPlatform.isDarwin; }; }