nheko: clean up (#341831)

authored by

Emily and committed by
GitHub
8d4e0861 659f95ed

+166 -175
-100
pkgs/applications/networking/instant-messengers/nheko/default.nix
··· 1 - { lib 2 - , stdenv 3 - , fetchFromGitHub 4 - , cmake 5 - , asciidoc 6 - , pkg-config 7 - , boost179 8 - , cmark 9 - , coeurl 10 - , curl 11 - , kdsingleapplication 12 - , libevent 13 - , libsecret 14 - , lmdb 15 - , lmdbxx 16 - , mtxclient 17 - , nlohmann_json 18 - , olm 19 - , qtbase 20 - , qtimageformats 21 - , qtkeychain 22 - , qtmultimedia 23 - , qttools 24 - , qtwayland 25 - , re2 26 - , spdlog 27 - , wrapQtAppsHook 28 - , gst_all_1 29 - , libnice 30 - }: 31 - 32 - stdenv.mkDerivation rec { 33 - pname = "nheko"; 34 - version = "0.12.0"; 35 - 36 - src = fetchFromGitHub { 37 - owner = "Nheko-Reborn"; 38 - repo = "nheko"; 39 - rev = "v${version}"; 40 - hash = "sha256-hQb+K8ogNj/s6ZO2kgS/sZZ35y4CwMeS3lVeMYNucYQ="; 41 - }; 42 - 43 - nativeBuildInputs = [ 44 - asciidoc 45 - cmake 46 - lmdbxx 47 - pkg-config 48 - wrapQtAppsHook 49 - ]; 50 - 51 - buildInputs = [ 52 - boost179 53 - cmark 54 - coeurl 55 - curl 56 - kdsingleapplication 57 - libevent 58 - libsecret 59 - lmdb 60 - mtxclient 61 - nlohmann_json 62 - olm 63 - qtbase 64 - qtimageformats 65 - qtkeychain 66 - qtmultimedia 67 - qttools 68 - qtwayland 69 - re2 70 - spdlog 71 - ] 72 - ++ (with gst_all_1; [ 73 - gstreamer 74 - gst-plugins-base 75 - (gst-plugins-good.override { qt6Support = true; }) 76 - gst-plugins-bad 77 - libnice 78 - ]); 79 - 80 - cmakeFlags = [ 81 - "-DCOMPILE_QML=ON" # see https://github.com/Nheko-Reborn/nheko/issues/389 82 - ]; 83 - 84 - preFixup = '' 85 - # add gstreamer plugins path to the wrapper 86 - qtWrapperArgs+=(--prefix GST_PLUGIN_SYSTEM_PATH_1_0 : "$GST_PLUGIN_SYSTEM_PATH_1_0") 87 - ''; 88 - 89 - meta = with lib; { 90 - description = "Desktop client for the Matrix protocol"; 91 - homepage = "https://github.com/Nheko-Reborn/nheko"; 92 - license = licenses.gpl3Plus; 93 - mainProgram = "nheko"; 94 - maintainers = with maintainers; [ ekleog fpletz ]; 95 - platforms = platforms.all; 96 - # Should be fixable if a higher clang version is used, see: 97 - # https://github.com/NixOS/nixpkgs/pull/85922#issuecomment-619287177 98 - broken = stdenv.hostPlatform.isDarwin; 99 - }; 100 - }
···
+47
pkgs/by-name/co/coeurl/package.nix
···
··· 1 + { 2 + lib, 3 + stdenv, 4 + fetchFromGitLab, 5 + ninja, 6 + pkg-config, 7 + meson, 8 + libevent, 9 + curl, 10 + spdlog, 11 + }: 12 + 13 + stdenv.mkDerivation rec { 14 + pname = "coeurl"; 15 + version = "0.3.1"; 16 + 17 + src = fetchFromGitLab { 18 + domain = "nheko.im"; 19 + owner = "nheko-reborn"; 20 + repo = pname; 21 + rev = "v${version}"; 22 + hash = "sha256-NGplM5c/dMGSQbhKeuPOTWL8KsqvMd/76YuwCxnqNNE="; 23 + }; 24 + postPatch = '' 25 + substituteInPlace subprojects/curl.wrap --replace '[provides]' '[provide]' 26 + ''; 27 + 28 + nativeBuildInputs = [ 29 + ninja 30 + pkg-config 31 + meson 32 + ]; 33 + 34 + buildInputs = [ 35 + libevent 36 + curl 37 + spdlog 38 + ]; 39 + 40 + meta = with lib; { 41 + description = "Simple async wrapper around CURL for C++"; 42 + homepage = "https://nheko.im/nheko-reborn/coeurl"; 43 + license = licenses.mit; 44 + platforms = platforms.all; 45 + maintainers = with maintainers; [ rnhmjoj ]; 46 + }; 47 + }
+100
pkgs/by-name/nh/nheko/package.nix
···
··· 1 + { 2 + lib, 3 + stdenv, 4 + fetchFromGitHub, 5 + cmake, 6 + asciidoc, 7 + pkg-config, 8 + boost179, 9 + cmark, 10 + coeurl, 11 + curl, 12 + kdsingleapplication, 13 + libevent, 14 + libsecret, 15 + lmdb, 16 + lmdbxx, 17 + mtxclient, 18 + nlohmann_json, 19 + olm, 20 + re2, 21 + spdlog, 22 + gst_all_1, 23 + libnice, 24 + qt6Packages, 25 + }: 26 + 27 + stdenv.mkDerivation rec { 28 + pname = "nheko"; 29 + version = "0.12.0"; 30 + 31 + src = fetchFromGitHub { 32 + owner = "Nheko-Reborn"; 33 + repo = "nheko"; 34 + rev = "v${version}"; 35 + hash = "sha256-hQb+K8ogNj/s6ZO2kgS/sZZ35y4CwMeS3lVeMYNucYQ="; 36 + }; 37 + 38 + nativeBuildInputs = [ 39 + asciidoc 40 + cmake 41 + lmdbxx 42 + pkg-config 43 + qt6Packages.wrapQtAppsHook 44 + ]; 45 + 46 + buildInputs = 47 + [ 48 + boost179 49 + cmark 50 + coeurl 51 + curl 52 + kdsingleapplication 53 + libevent 54 + libsecret 55 + lmdb 56 + mtxclient 57 + nlohmann_json 58 + olm 59 + qt6Packages.qtbase 60 + qt6Packages.qtimageformats 61 + qt6Packages.qtkeychain 62 + qt6Packages.qtmultimedia 63 + qt6Packages.qttools 64 + qt6Packages.qtwayland 65 + re2 66 + spdlog 67 + ] 68 + ++ (with gst_all_1; [ 69 + gstreamer 70 + gst-plugins-base 71 + (gst-plugins-good.override { qt6Support = true; }) 72 + gst-plugins-bad 73 + libnice 74 + ]); 75 + 76 + cmakeFlags = [ 77 + "-DCOMPILE_QML=ON" # see https://github.com/Nheko-Reborn/nheko/issues/389 78 + ]; 79 + 80 + preFixup = '' 81 + # add gstreamer plugins path to the wrapper 82 + qtWrapperArgs+=(--prefix GST_PLUGIN_SYSTEM_PATH_1_0 : "$GST_PLUGIN_SYSTEM_PATH_1_0") 83 + ''; 84 + 85 + meta = with lib; { 86 + description = "Desktop client for the Matrix protocol"; 87 + homepage = "https://github.com/Nheko-Reborn/nheko"; 88 + license = licenses.gpl3Plus; 89 + mainProgram = "nheko"; 90 + maintainers = with maintainers; [ 91 + ekleog 92 + fpletz 93 + rnhmjoj 94 + ]; 95 + platforms = platforms.all; 96 + # Should be fixable if a higher clang version is used, see: 97 + # https://github.com/NixOS/nixpkgs/pull/85922#issuecomment-619287177 98 + broken = stdenv.hostPlatform.isDarwin; 99 + }; 100 + }
-55
pkgs/development/libraries/coeurl/default.nix
··· 1 - { lib 2 - , stdenv 3 - , fetchFromGitLab 4 - , fetchpatch 5 - , ninja 6 - , pkg-config 7 - , meson 8 - , libevent 9 - , curl 10 - , spdlog 11 - }: 12 - 13 - stdenv.mkDerivation rec { 14 - pname = "coeurl"; 15 - version = "0.3.0"; 16 - 17 - src = fetchFromGitLab { 18 - domain = "nheko.im"; 19 - owner = "nheko-reborn"; 20 - repo = pname; 21 - rev = "v${version}"; 22 - hash = "sha256-sN+YSddUOdnJLcnHyWdjNm1PpxCwnkwiqSvyrwUrg6w="; 23 - }; 24 - patches = [ 25 - # Fix compatibility issues with curl > 7.85, see: 26 - # https://nheko.im/nheko-reborn/coeurl/-/commit/d926893007c353fbc149d8538a5762ca8384273a 27 - # PATCH CAN BE REMOVED AFTER 0.3.0 28 - (fetchpatch { 29 - url = "https://nheko.im/nheko-reborn/coeurl/-/commit/d926893007c353fbc149d8538a5762ca8384273a.patch"; 30 - hash = "sha256-hOBk7riuVI7k7qe/SMq3XJnFzyZ0gB9kVG7dKvWOsPY="; 31 - }) 32 - # Fix error when building with fmt >= 10, see: 33 - # https://nheko.im/nheko-reborn/coeurl/-/commit/831e2ee8e9cf08ea1ee9736cde8370f9d0312abc 34 - # PATCH CAN BE REMOVED AFTER 0.3.0 35 - (fetchpatch { 36 - url = "https://nheko.im/nheko-reborn/coeurl/-/commit/831e2ee8e9cf08ea1ee9736cde8370f9d0312abc.patch"; 37 - hash = "sha256-a52Id7Nm3Mmmwv7eL58j6xovjlkpAO4KahVM/Q3H65w="; 38 - }) 39 - ]; 40 - postPatch = '' 41 - substituteInPlace subprojects/curl.wrap --replace '[provides]' '[provide]' 42 - ''; 43 - 44 - nativeBuildInputs = [ ninja pkg-config meson ]; 45 - 46 - buildInputs = [ libevent curl spdlog ]; 47 - 48 - meta = with lib; { 49 - description = "Simple async wrapper around CURL for C++"; 50 - homepage = "https://nheko.im/nheko-reborn/coeurl"; 51 - license = licenses.mit; 52 - platforms = platforms.all; 53 - maintainers = with maintainers; [ rnhmjoj ]; 54 - }; 55 - }
···
+19 -14
pkgs/development/libraries/mtxclient/default.nix pkgs/by-name/mt/mtxclient/package.nix
··· 1 - { lib 2 - , stdenv 3 - , fetchFromGitHub 4 - , cmake 5 - , pkg-config 6 - , coeurl 7 - , curl 8 - , libevent 9 - , nlohmann_json 10 - , olm 11 - , openssl 12 - , re2 13 - , spdlog 14 }: 15 16 stdenv.mkDerivation rec { ··· 56 description = "Client API library for the Matrix protocol"; 57 homepage = "https://github.com/Nheko-Reborn/mtxclient"; 58 license = licenses.mit; 59 - maintainers = with maintainers; [ fpletz pstn ]; 60 platforms = platforms.all; 61 # Should be fixable if a higher clang version is used, see: 62 # https://github.com/NixOS/nixpkgs/pull/85922#issuecomment-619287177
··· 1 + { 2 + lib, 3 + stdenv, 4 + fetchFromGitHub, 5 + cmake, 6 + pkg-config, 7 + coeurl, 8 + curl, 9 + libevent, 10 + nlohmann_json, 11 + olm, 12 + openssl, 13 + re2, 14 + spdlog, 15 }: 16 17 stdenv.mkDerivation rec { ··· 57 description = "Client API library for the Matrix protocol"; 58 homepage = "https://github.com/Nheko-Reborn/mtxclient"; 59 license = licenses.mit; 60 + maintainers = with maintainers; [ 61 + fpletz 62 + pstn 63 + rnhmjoj 64 + ]; 65 platforms = platforms.all; 66 # Should be fixable if a higher clang version is used, see: 67 # https://github.com/NixOS/nixpkgs/pull/85922#issuecomment-619287177
-6
pkgs/top-level/all-packages.nix
··· 19180 protobuf = protobuf_21; 19181 }; 19182 19183 - coeurl = callPackage ../development/libraries/coeurl { }; 19184 - 19185 coercer = callPackage ../tools/security/coercer { }; 19186 19187 cogl = callPackage ../development/libraries/cogl { ··· 22161 mtdev = callPackage ../development/libraries/mtdev { }; 22162 22163 mtpfs = callPackage ../tools/filesystems/mtpfs { }; 22164 - 22165 - mtxclient = callPackage ../development/libraries/mtxclient { }; 22166 22167 mu = callPackage ../tools/networking/mu { }; 22168 ··· 31592 nedit = callPackage ../applications/editors/nedit { }; 31593 31594 ngt = callPackage ../development/libraries/ngt { }; 31595 - 31596 - nheko = qt6Packages.callPackage ../applications/networking/instant-messengers/nheko { }; 31597 31598 notepad-next = libsForQt5.callPackage ../applications/editors/notepad-next { }; 31599
··· 19180 protobuf = protobuf_21; 19181 }; 19182 19183 coercer = callPackage ../tools/security/coercer { }; 19184 19185 cogl = callPackage ../development/libraries/cogl { ··· 22159 mtdev = callPackage ../development/libraries/mtdev { }; 22160 22161 mtpfs = callPackage ../tools/filesystems/mtpfs { }; 22162 22163 mu = callPackage ../tools/networking/mu { }; 22164 ··· 31588 nedit = callPackage ../applications/editors/nedit { }; 31589 31590 ngt = callPackage ../development/libraries/ngt { }; 31591 31592 notepad-next = libsForQt5.callPackage ../applications/editors/notepad-next { }; 31593