3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/applications/networking/mumble/murmur.nix

43 lines
1,013 B
Nix
Raw Normal View History

2015-04-26 07:32:04 +01:00
{ stdenv, qt4, boost, protobuf, mumble
, avahi, libcap, pkgconfig
, iceSupport ? false
, zeroc_ice ? null
}:
2013-11-21 10:22:35 +00:00
assert iceSupport -> zeroc_ice != null;
let
optional = stdenv.lib.optional;
optionalString = stdenv.lib.optionalString;
in
2013-11-21 10:22:35 +00:00
stdenv.mkDerivation rec {
2015-04-26 07:32:04 +01:00
name = "murmur-${version}";
2013-11-21 10:22:35 +00:00
2015-04-26 07:32:04 +01:00
inherit (mumble) version src;
2013-11-21 10:22:35 +00:00
patchPhase = optional iceSupport ''
sed -i 's,/usr/share/Ice/,${zeroc_ice}/,g' src/murmur/murmur.pro
'';
2013-11-21 10:22:35 +00:00
configurePhase = ''
qmake CONFIG+=no-client CONFIG+=no-embed-qt \
${optionalString (!iceSupport) "CONFIG+=no-ice"}
2013-11-21 10:22:35 +00:00
'';
buildInputs = [ qt4 boost protobuf avahi libcap pkgconfig ]
++ optional iceSupport [ zeroc_ice ];
2013-11-21 10:22:35 +00:00
installPhase = ''
mkdir -p $out
cp -r ./release $out/bin
'';
meta = with stdenv.lib; {
homepage = "http://mumble.sourceforge.net/";
2013-11-21 10:22:35 +00:00
description = "Low-latency, high quality voice chat software";
license = licenses.bsd3;
platforms = platforms.linux;
maintainers = with maintainers; [ viric ];
2013-11-21 10:22:35 +00:00
};
}