summaryrefslogtreecommitdiffstats
path: root/pkgs/applications/networking/mumble
diff options
context:
space:
mode:
authorK900 <me@0upti.me>2020-08-28 23:11:27 +0300
committerK900 <me@0upti.me>2020-08-28 23:17:01 +0300
commitf02ac20f95537ecb7e33426237d159e2f20aa479 (patch)
treebc152706c43e735ef3399e2ec22465265fab95d9 /pkgs/applications/networking/mumble
parentd0e52b6b32b12e97788f99f3f6757372a240ef19 (diff)
murmur: support building with grpc
Diffstat (limited to 'pkgs/applications/networking/mumble')
-rw-r--r--pkgs/applications/networking/mumble/default.nix9
1 files changed, 7 insertions, 2 deletions
diff --git a/pkgs/applications/networking/mumble/default.nix b/pkgs/applications/networking/mumble/default.nix
index 8490c0509a1c..c205f18e3663 100644
--- a/pkgs/applications/networking/mumble/default.nix
+++ b/pkgs/applications/networking/mumble/default.nix
@@ -6,6 +6,7 @@
, speechdSupport ? false, speechd ? null
, pulseSupport ? false, libpulseaudio ? null
, iceSupport ? false, zeroc-ice ? null
+, grpcSupport ? false, grpc ? null, c-ares ? null, abseil-cpp ? null, which ? null
, nixosTests
}:
@@ -13,6 +14,7 @@ assert jackSupport -> libjack2 != null;
assert speechdSupport -> speechd != null;
assert pulseSupport -> libpulseaudio != null;
assert iceSupport -> zeroc-ice != null;
+assert grpcSupport -> (grpc != null && c-ares != null && abseil-cpp != null && which != null);
with stdenv.lib;
let
@@ -117,9 +119,12 @@ let
configureFlags = [
"CONFIG+=no-client"
- ] ++ optional (!iceSupport) "CONFIG+=no-ice";
+ ] ++ optional (!iceSupport) "CONFIG+=no-ice"
+ ++ optional grpcSupport "CONFIG+=grpc";
- buildInputs = [ libcap ] ++ optional iceSupport zeroc-ice;
+ buildInputs = [ libcap ]
+ ++ optional iceSupport zeroc-ice
+ ++ optionals grpcSupport [ grpc c-ares abseil-cpp which ];
installPhase = ''
# bin stuff