nixpkgs/pkgs/applications/networking/mumble/murmur.nix

47 lines
1.1 KiB
Nix
Raw Normal View History

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