pinact: 1.0.0 -> 1.1.2 and set CGO_ENABLED=0 (#368078)
[NixPkgs.git] / pkgs / applications / networking / instant-messengers / teamspeak / client5.nix
blob12ca1e63b9989be220400284c4f8be2bb122c9f6
2   lib,
3   stdenv,
4   fetchurl,
5   autoPatchelfHook,
6   copyDesktopItems,
7   makeDesktopItem,
8   makeWrapper,
9   alsa-lib,
10   at-spi2-atk,
11   atk,
12   cairo,
13   cups,
14   dbus,
15   gcc-unwrapped,
16   gdk-pixbuf,
17   glib,
18   gtk3,
19   libdrm,
20   libnotify,
21   libpulseaudio,
22   libxkbcommon,
23   libgbm,
24   nss,
25   udev,
26   xorg,
29 stdenv.mkDerivation rec {
30   pname = "teamspeak5-client";
31   version = "5.0.0-beta77";
33   src = fetchurl {
34     # check https://teamspeak.com/en/downloads/#ts5 for version and checksum
35     url = "https://files.teamspeak-services.com/pre_releases/client/${version}/teamspeak-client.tar.gz";
36     sha256 = "6f3bf97b120d3c799cefc90c448e45836708a826d7caa07ad32b5c868eb9181b";
37   };
39   sourceRoot = ".";
41   propagatedBuildInputs = [
42     alsa-lib
43     at-spi2-atk
44     atk
45     cairo
46     cups.lib
47     dbus
48     gcc-unwrapped.lib
49     gdk-pixbuf
50     glib
51     gtk3
52     libdrm
53     libnotify
54     libpulseaudio
55     libxkbcommon
56     libgbm
57     nss
58     xorg.libX11
59     xorg.libXScrnSaver
60     xorg.libXdamage
61     xorg.libXfixes
62     xorg.libxshmfence
63   ];
65   nativeBuildInputs = [
66     autoPatchelfHook
67     copyDesktopItems
68     makeWrapper
69   ];
71   desktopItems = [
72     (makeDesktopItem {
73       name = "TeamSpeak";
74       exec = "TeamSpeak";
75       icon = pname;
76       desktopName = pname;
77       comment = "TeamSpeak Voice Communication Client";
78       categories = [
79         "Audio"
80         "AudioVideo"
81         "Chat"
82         "Network"
83       ];
84     })
85   ];
87   dontConfigure = true;
88   dontBuild = true;
90   installPhase = ''
91     runHook preInstall
93     mkdir -p $out/bin $out/share/${pname} $out/share/icons/hicolor/64x64/apps/
95     cp -a * $out/share/${pname}
96     cp logo-256.png $out/share/icons/hicolor/64x64/apps/${pname}.png
98     makeWrapper $out/share/${pname}/TeamSpeak $out/bin/TeamSpeak \
99       --prefix LD_LIBRARY_PATH : "${lib.makeLibraryPath [ udev ]}"
101     runHook postInstall
102   '';
104   meta = with lib; {
105     description = "TeamSpeak voice communication tool (beta version)";
106     homepage = "https://teamspeak.com/";
107     license = {
108       fullName = "Teamspeak client license";
109       url = "https://www.teamspeak.com/en/privacy-and-terms/";
110       free = false;
111     };
112     maintainers = with maintainers; [ jojosch ];
113     platforms = [ "x86_64-linux" ];
114   };