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-02-08 04:29:38 +01:00
version = "1.2.5";
2013-11-21 11:22:35 +01:00
src = fetchurl {
url = "mirror://sourceforge/mumble/mumble-${version}.tar.gz";
2014-02-08 04:29:38 +01:00
sha256 = "1bsgains6xgpgpd1b5bq682z0kswp5fcjh2cir4c4qkndya5clci";
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
};
}