Merge pull request #8972 from nathanielbaxter/dev/teamspeak_client

teamspeak_client: create .desktop file

lethalman 90b19534 5d60c20f

+26 -4
+26 -4
pkgs/applications/networking/instant-messengers/teamspeak/client.nix
··· 1 - { stdenv, fetchurl, makeWrapper, zlib, glib, libpng, freetype, xorg 2 - , fontconfig, xlibs, qt5, xkeyboard_config, alsaLib, libpulseaudio ? null 3 - , libredirect, quazip, less, which 4 }: 5 6 let ··· 15 xlibs.libxcb fontconfig xorg.libXext xorg.libX11 alsaLib qt5.base libpulseaudio 16 ]; 17 18 in 19 20 stdenv.mkDerivation rec { ··· 33 else "1b3nbvfpd8lx3dig8z5yk6zjkbmsy6y938dhj1f562wc8adixciz"; 34 }; 35 36 - buildInputs = [ makeWrapper less which ]; 37 38 unpackPhase = 39 '' ··· 61 # Install files. 62 mkdir -p $out/lib/teamspeak 63 mv * $out/lib/teamspeak/ 64 65 # Make a symlink to the binary from bin. 66 mkdir -p $out/bin/
··· 1 + { stdenv, fetchurl, makeWrapper, makeDesktopItem, zlib, glib, libpng, freetype 2 + , xorg, fontconfig, xlibs, qt5, xkeyboard_config, alsaLib, libpulseaudio ? null 3 + , libredirect, quazip, less, which, unzip 4 }: 5 6 let ··· 15 xlibs.libxcb fontconfig xorg.libXext xorg.libX11 alsaLib qt5.base libpulseaudio 16 ]; 17 18 + desktopItem = makeDesktopItem { 19 + name = "teamspeak"; 20 + exec = "ts3client"; 21 + icon = "teamspeak"; 22 + comment = "The TeamSpeak voice communication tool"; 23 + desktopName = "TeamSpeak"; 24 + genericName = "TeamSpeak"; 25 + categories = "Network"; 26 + }; 27 + 28 in 29 30 stdenv.mkDerivation rec { ··· 43 else "1b3nbvfpd8lx3dig8z5yk6zjkbmsy6y938dhj1f562wc8adixciz"; 44 }; 45 46 + # grab the plugin sdk for the desktop icon 47 + pluginsdk = fetchurl { 48 + url = "http://dl.4players.de/ts/client/pluginsdk/pluginsdk_3.0.16.zip"; 49 + sha256 = "1qpqpj3r21wff3ly9ail4l6b57pcqycsh2hca926j14sdlvpv7kl"; 50 + }; 51 + 52 + buildInputs = [ makeWrapper less which unzip ]; 53 54 unpackPhase = 55 '' ··· 77 # Install files. 78 mkdir -p $out/lib/teamspeak 79 mv * $out/lib/teamspeak/ 80 + 81 + # Make a desktop item 82 + mkdir -p $out/share/applications/ $out/share/icons/ 83 + unzip ${pluginsdk} 84 + cp pluginsdk/docs/client_html/images/logo.png $out/share/icons/teamspeak.png 85 + cp ${desktopItem}/share/applications/* $out/share/applications/ 86 87 # Make a symlink to the binary from bin. 88 mkdir -p $out/bin/