diff options
author | rnhmjoj <rnhmjoj@inventati.org> | 2021-01-23 14:27:23 +0100 |
---|---|---|
committer | rnhmjoj <rnhmjoj@inventati.org> | 2021-02-23 10:46:49 +0100 |
commit | 59fb4293fc2ceb582e87d56388d86e165a686cb3 (patch) | |
tree | db918282835ac296b7b072e4727655ab2860f842 /pkgs/applications/networking/instant-messengers/nheko/default.nix | |
parent | be1dbde1e17f1cd45ae5b57709be88bdf07b3f1b (diff) | |
download | nixpkgs-59fb4293fc2ceb582e87d56388d86e165a686cb3.tar nixpkgs-59fb4293fc2ceb582e87d56388d86e165a686cb3.tar.gz nixpkgs-59fb4293fc2ceb582e87d56388d86e165a686cb3.tar.bz2 nixpkgs-59fb4293fc2ceb582e87d56388d86e165a686cb3.tar.lz nixpkgs-59fb4293fc2ceb582e87d56388d86e165a686cb3.tar.xz nixpkgs-59fb4293fc2ceb582e87d56388d86e165a686cb3.tar.zst nixpkgs-59fb4293fc2ceb582e87d56388d86e165a686cb3.zip |
nheko: build with VoIP support
Diffstat (limited to 'pkgs/applications/networking/instant-messengers/nheko/default.nix')
-rw-r--r-- | pkgs/applications/networking/instant-messengers/nheko/default.nix | 17 |
1 files changed, 16 insertions, 1 deletions
diff --git a/pkgs/applications/networking/instant-messengers/nheko/default.nix b/pkgs/applications/networking/instant-messengers/nheko/default.nix index 57db6a0750e..927f89c9493 100644 --- a/pkgs/applications/networking/instant-messengers/nheko/default.nix +++ b/pkgs/applications/networking/instant-messengers/nheko/default.nix @@ -23,6 +23,9 @@ , olm , pkg-config , nlohmann_json +, voipSupport ? true +, gst_all_1 +, libnice }: mkDerivation rec { @@ -59,12 +62,24 @@ mkDerivation rec { qtquickcontrols2 qtgraphicaleffects qtkeychain - ] ++ lib.optional stdenv.isDarwin qtmacextras; + ] ++ 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 + ]); cmakeFlags = [ "-DCOMPILE_QML=ON" # see https://github.com/Nheko-Reborn/nheko/issues/389 ]; + preFixup = lib.optionalString voipSupport '' + # add gstreamer plugins path to the wrapper + qtWrapperArgs+=(--prefix GST_PLUGIN_SYSTEM_PATH_1_0 : "$GST_PLUGIN_SYSTEM_PATH_1_0") + ''; + meta = with lib; { description = "Desktop client for the Matrix protocol"; homepage = "https://github.com/Nheko-Reborn/nheko"; |