diff options
author | Benjamin Saunders <ben.e.saunders@gmail.com> | 2016-06-21 03:59:29 -0700 |
---|---|---|
committer | Franz Pletz <fpletz@fnordicwalking.de> | 2016-06-21 12:59:29 +0200 |
commit | 8e47786c0ea383a7e0bd0d3e166d575152cd4a0c (patch) | |
tree | b80b10b63cf6e72780c82b17561f080d2ad87d51 /pkgs/servers/coturn | |
parent | bc08bef615261dff66ddc0384398fd8565c778cf (diff) |
coturn: init at 4.5.0.3 (#16284)
Diffstat (limited to 'pkgs/servers/coturn')
-rw-r--r-- | pkgs/servers/coturn/default.nix | 27 | ||||
-rw-r--r-- | pkgs/servers/coturn/pure-configure.patch | 17 |
2 files changed, 44 insertions, 0 deletions
diff --git a/pkgs/servers/coturn/default.nix b/pkgs/servers/coturn/default.nix new file mode 100644 index 000000000000..8dc062b75043 --- /dev/null +++ b/pkgs/servers/coturn/default.nix @@ -0,0 +1,27 @@ +{ stdenv, fetchFromGitHub, openssl, libevent }: + +with { inherit (stdenv.lib) optional; }; + +stdenv.mkDerivation rec { + name = "coturn-${version}"; + version = "4.5.0.3"; + + src = fetchFromGitHub { + owner = "coturn"; + repo = "coturn"; + rev = "${version}"; + sha256 = "1xr4dp3p16m4rq9mdsprs6s50rnif6hk38xx9siyykgfjnwr6i9g"; + }; + + buildInputs = [ openssl libevent ]; + + patches = [ ./pure-configure.patch ]; + + meta = with stdenv.lib; { + homepage = http://coturn.net/; + license = with licenses; [ bsd3 ]; + description = "A TURN server"; + platforms = platforms.all; + maintainers = [ maintainers.ralith ]; + }; +} diff --git a/pkgs/servers/coturn/pure-configure.patch b/pkgs/servers/coturn/pure-configure.patch new file mode 100644 index 000000000000..0315a71b1844 --- /dev/null +++ b/pkgs/servers/coturn/pure-configure.patch @@ -0,0 +1,17 @@ +diff --git a/configure b/configure +index 28a0625..ea25488 100755 +--- a/configure ++++ b/configure +@@ -624,12 +624,6 @@ fi + + TMPDIR="." + +-if [ -d /var/tmp ] ; then +- TMPDIR="/var/tmp" +-elif [ -d /tmp ] ; then +- TMPDIR=/tmp +-fi +- + ${ECHO_CMD} Use TMP dir ${TMPDIR} + + ######################### |