git.iko.soy/typeable/nixpkgs
on master help sign in
nheko: build with VoIP support
commit59fb4293fc2ceb582e87d56388d86e165a686cb3 authorrnhmjoj <rnhmjoj@inventati.org> dateSat 23 Jan 2021, 14:27 (6 years ago) parentbe1dbde
1 file changed+16−1
pkgs/applications/networking/instant-messengers/nheko/default.nix+16−1
pkgs/applications/networking/instant-messengers/nheko/default.nix+16−1
@@ -23,6 +23,9 @@
2323, olm
2424, pkg-config
2525, nlohmann_json
26+, voipSupport ? true
27+, gst_all_1
28+, libnice
2629}:
2730
2831mkDerivation rec {
@@ -59,12 +62,24 @@ mkDerivation rec {
5962 qtquickcontrols2
6063 qtgraphicaleffects
6164 qtkeychain
62− ] ++ lib.optional stdenv.isDarwin qtmacextras;
65+ ] ++ lib.optional stdenv.isDarwin qtmacextras
66+ ++ lib.optionals voipSupport (with gst_all_1; [
67+ gstreamer
68+ gst-plugins-base
69+ (gst-plugins-good.override { qt5Support = true; })
70+ gst-plugins-bad
71+ libnice
72+ ]);
6373
6474 cmakeFlags = [
6575 "-DCOMPILE_QML=ON" # see https://github.com/Nheko-Reborn/nheko/issues/389
6676 ];
6777
78+ preFixup = lib.optionalString voipSupport ''
79+ # add gstreamer plugins path to the wrapper
80+ qtWrapperArgs+=(--prefix GST_PLUGIN_SYSTEM_PATH_1_0 : "$GST_PLUGIN_SYSTEM_PATH_1_0")
81+ '';
82+
6883 meta = with lib; {
6984 description = "Desktop client for the Matrix protocol";
7085 homepage = "https://github.com/Nheko-Reborn/nheko";