2014-08-10 19:05:15 +02:00
|
|
|
{ stdenv, fetchurl, zlib, glib, libpng, freetype, xorg, fontconfig, alsaLib, makeWrapper, xlibs
|
|
|
|
, qt5, pulseaudio ? null, qt4, xkeyboard_config, libredirect }:
|
2010-10-28 19:45:18 +02:00
|
|
|
|
|
|
|
let
|
|
|
|
|
2013-11-20 06:46:55 +01:00
|
|
|
arch = if stdenv.is64bit then "amd64" else "x86";
|
|
|
|
|
2010-10-28 19:45:18 +02:00
|
|
|
libDir = if stdenv.is64bit then "lib64" else "lib";
|
|
|
|
|
|
|
|
deps =
|
|
|
|
[ zlib glib libpng freetype xorg.libSM xorg.libICE xorg.libXrender
|
2014-08-10 19:05:15 +02:00
|
|
|
xorg.libXrandr xorg.libXfixes xorg.libXcursor xorg.libXinerama xlibs.libxcb
|
|
|
|
fontconfig xorg.libXext xorg.libX11 alsaLib qt5 pulseaudio quazip
|
2010-10-28 19:45:18 +02:00
|
|
|
];
|
|
|
|
|
2014-08-10 19:05:15 +02:00
|
|
|
quazip = stdenv.mkDerivation {
|
|
|
|
name = "quazip-0.7";
|
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "mirror://sourceforge/project/quazip/quazip/0.7/quazip-0.7.tar.gz";
|
|
|
|
sha256 = "193lfvhcpqgl2jmxxa4q3asc4xh1mqp2j2l0h8lmm2zrpzwygxca";
|
|
|
|
};
|
|
|
|
|
|
|
|
buildInputs = [ qt4 ];
|
|
|
|
|
|
|
|
preBuild = ''
|
|
|
|
qmake PREFIX="$out"
|
|
|
|
'';
|
|
|
|
};
|
|
|
|
|
2010-10-28 19:45:18 +02:00
|
|
|
in
|
|
|
|
|
2014-08-10 19:05:15 +02:00
|
|
|
stdenv.mkDerivation rec {
|
2013-11-20 06:46:55 +01:00
|
|
|
name = "teamspeak-client-${version}";
|
2010-10-28 19:45:18 +02:00
|
|
|
|
2014-08-10 19:05:15 +02:00
|
|
|
version = "3.0.16";
|
|
|
|
|
2010-10-28 19:45:18 +02:00
|
|
|
src = fetchurl {
|
2013-11-20 06:46:55 +01:00
|
|
|
urls = [
|
2014-08-10 19:05:15 +02:00
|
|
|
"http://dl.4players.de/ts/releases/${version}/TeamSpeak3-Client-linux_${arch}-${version}.run"
|
2013-11-20 06:46:55 +01:00
|
|
|
"http://teamspeak.gameserver.gamed.de/ts3/releases/${version}/TeamSpeak3-Client-linux_${arch}-${version}.run"
|
|
|
|
"http://files.teamspeak-services.com/releases/${version}/TeamSpeak3-Client-linux_${arch}-${version}.run"
|
|
|
|
];
|
|
|
|
sha256 = if stdenv.is64bit
|
2014-08-10 19:05:15 +02:00
|
|
|
then "0gvphrmrkyy1g2nprvdk7cvawznzlv4smw0mlvzd4b9mvynln0v2"
|
|
|
|
else "1b3nbvfpd8lx3dig8z5yk6zjkbmsy6y938dhj1f562wc8adixciz";
|
2010-10-28 19:45:18 +02:00
|
|
|
};
|
|
|
|
|
2014-08-10 19:05:15 +02:00
|
|
|
buildInputs = [ makeWrapper ];
|
|
|
|
|
2010-10-28 19:45:18 +02:00
|
|
|
unpackPhase =
|
|
|
|
''
|
2014-08-10 19:05:15 +02:00
|
|
|
yes | sh $src
|
2010-10-28 19:45:18 +02:00
|
|
|
cd TeamSpeak*
|
|
|
|
'';
|
|
|
|
|
|
|
|
buildPhase =
|
|
|
|
''
|
2013-11-20 06:46:55 +01:00
|
|
|
mv ts3client_linux_${arch} ts3client
|
|
|
|
echo "patching ts3client..."
|
|
|
|
patchelf \
|
|
|
|
--interpreter "$(cat $NIX_GCC/nix-support/dynamic-linker)" \
|
|
|
|
--set-rpath ${stdenv.lib.makeLibraryPath deps}:$(cat $NIX_GCC/nix-support/orig-gcc)/${libDir} \
|
|
|
|
--force-rpath \
|
|
|
|
ts3client
|
2010-10-28 19:45:18 +02:00
|
|
|
'';
|
|
|
|
|
|
|
|
installPhase =
|
|
|
|
''
|
2013-11-20 06:46:55 +01:00
|
|
|
# Delete unecessary libraries - these are provided by nixos.
|
|
|
|
rm *.so.*
|
|
|
|
|
|
|
|
# Install files.
|
2010-10-28 19:45:18 +02:00
|
|
|
mkdir -p $out/lib/teamspeak
|
|
|
|
mv * $out/lib/teamspeak/
|
2013-11-20 06:46:55 +01:00
|
|
|
|
|
|
|
# Make a symlink to the binary from bin.
|
|
|
|
mkdir -p $out/bin/
|
|
|
|
ln -s $out/lib/teamspeak/ts3client $out/bin/ts3client
|
2014-08-10 19:05:15 +02:00
|
|
|
|
|
|
|
wrapProgram $out/bin/ts3client \
|
|
|
|
--set LD_PRELOAD "${libredirect}/lib/libredirect.so" \
|
|
|
|
--set QT_PLUGIN_PATH "$out/lib/teamspeak/platforms" \
|
|
|
|
--set NIX_REDIRECTS /usr/share/X11/xkb=${xkeyboard_config}/share/X11/xkb
|
2010-10-28 19:45:18 +02:00
|
|
|
'';
|
|
|
|
|
|
|
|
dontStrip = true;
|
|
|
|
dontPatchELF = true;
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "The TeamSpeak voice communication tool";
|
|
|
|
homepage = http://teamspeak.com/;
|
|
|
|
license = "http://www.teamspeak.com/?page=downloads&type=ts3_linux_client_latest";
|
2013-11-20 06:46:55 +01:00
|
|
|
platforms = stdenv.lib.platforms.linux;
|
2010-10-28 19:45:18 +02:00
|
|
|
};
|
|
|
|
}
|
|
|
|
|
2007-12-14 02:50:19 +01:00
|
|
|
/*
|
|
|
|
License issues:
|
|
|
|
Date: Mon, 10 Dec 2007 19:55:16 -0500
|
|
|
|
From: TeamSpeak Sales <sales@tritoncia.com>
|
|
|
|
To: 'Marc Weber' <marco-oweber@gmx.de>
|
|
|
|
Subject: RE: teamspeak on nix?
|
|
|
|
|
|
|
|
Yes, that would be fine. As long as you are not renting servers or selling
|
|
|
|
TeamSpeak then you are more than welcome to distribute it.
|
|
|
|
|
|
|
|
Thank you,
|
|
|
|
|
|
|
|
TeamSpeak Sales Team
|
|
|
|
________________________________
|
|
|
|
e-Mail: sales@tritoncia.com
|
|
|
|
TeamSpeak: http://www.TeamSpeak.com
|
|
|
|
Account Login: https://sales.TritonCIA.com/users
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
-----Original Message-----
|
|
|
|
From: Marc Weber [mailto:marco-oweber@gmx.de]
|
|
|
|
Sent: Monday, December 10, 2007 5:03 PM
|
|
|
|
To: sales@tritoncia.com
|
|
|
|
Subject: teamspeak on nix?
|
|
|
|
|
|
|
|
Hello,
|
|
|
|
|
|
|
|
nix is very young software distribution system (http://nix.cs.uu.nl/)
|
|
|
|
I'd like to ask wether you permit us to add teamspeak (server/ client?)
|
|
|
|
|
|
|
|
Sincerly
|
|
|
|
Marc Weber (small nix contributor)
|
|
|
|
*/
|