Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: NixOS/nixpkgs
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: f5f3ef538999
Choose a base ref
...
head repository: NixOS/nixpkgs
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: 537e891929d6
Choose a head ref
  • 3 commits
  • 1 file changed
  • 2 contributors

Commits on Apr 7, 2020

  1. Copy the full SHA
    6ed0852 View commit details

Commits on Apr 11, 2020

  1. Copy the full SHA
    fdb4439 View commit details

Commits on Apr 12, 2020

  1. Merge pull request #84650 from Gerschtli/update/ts3

    teamspeak_server: 3.11.0 -> 3.12.1
    marsam authored Apr 12, 2020
    Copy the full SHA
    537e891 View commit details
Showing with 27 additions and 4 deletions.
  1. +27 −4 pkgs/applications/networking/instant-messengers/teamspeak/server.nix
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
{ stdenv, fetchurl, autoPatchelfHook }:
{ stdenv, fetchurl, autoPatchelfHook, writeScript }:

let
arch = if stdenv.is64bit then "amd64" else "x86";
in stdenv.mkDerivation rec {
pname = "teamspeak-server";
version = "3.11.0";
version = "3.12.1";

src = fetchurl {
url = "https://files.teamspeak-services.com/releases/server/${version}/teamspeak3-server_linux_${arch}-${version}.tar.bz2";
sha256 = if stdenv.is64bit
then "18hsr119dq46rvhz5sb9snn2gfxwiig37g6bfzk24x6wlga3xihq"
else "1lyazw328azi0asvgvcsxglc1saqih6ss0g8pc8f5pzqngk9p953";
then "1dxbnk12ry6arn1p38hpv5jfak55pmfmxkkl7aihn3sp1aizpgyg"
else "0nfzx7pbzd95a7v08g29l84sc0lnv9fx8vz3mrmzhs0xqn9gxdkq";
};

buildInputs = [ stdenv.cc.cc ];
@@ -28,6 +28,29 @@ in stdenv.mkDerivation rec {
ln -s $out/lib/teamspeak/tsdns/tsdnsserver $out/bin/tsdnsserver
'';

passthru.updateScript = writeScript "update-teampeak-server" ''
#!/usr/bin/env nix-shell
#!nix-shell -i bash -p common-updater-scripts curl gnugrep gnused
set -eu -o pipefail
version=$( \
curl -s "https://www.teamspeak.de/download/teamspeak-3-amd64-server-linux/" \
| grep softwareVersion \
| sed -E -e 's/^.*<span itemprop="softwareVersion">([^<]+)<\/span>.*$/\1/' \
)
versionOld=$(nix-instantiate --eval --strict -A "teamspeak_server.version")
nixFile=pkgs/applications/networking/instant-messengers/teamspeak/server.nix
update-source-version teamspeak_server "$version" --system=i686-linux
sed -i -e "s/version = \"$version\";/version = $versionOld;/" "$nixFile"
update-source-version teamspeak_server "$version" --system=x86_64-linux
'';

meta = with stdenv.lib; {
description = "TeamSpeak voice communication server";
homepage = "https://teamspeak.com/";