2021-01-11 10:27:59 +00:00
|
|
|
{ lib
|
|
|
|
, stdenv
|
|
|
|
, fetchFromGitHub
|
|
|
|
, fetchpatch
|
|
|
|
, openssl
|
|
|
|
, libevent
|
|
|
|
, pkg-config
|
|
|
|
, libprom
|
|
|
|
, libpromhttp
|
|
|
|
, libmicrohttpd
|
|
|
|
}:
|
2016-06-21 11:59:29 +01:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 13:41:18 +01:00
|
|
|
pname = "coturn";
|
2021-01-11 10:27:59 +00:00
|
|
|
version = "4.5.2";
|
2016-06-21 11:59:29 +01:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "coturn";
|
|
|
|
repo = "coturn";
|
2019-09-09 00:38:31 +01:00
|
|
|
rev = version;
|
2021-01-11 10:27:59 +00:00
|
|
|
sha256 = "1s7ncc82ny4bb3qkn3fqr0144xsr7h2y8xmzsf5037h6j8f7j3v8";
|
2016-06-21 11:59:29 +01:00
|
|
|
};
|
|
|
|
|
2021-01-11 10:27:59 +00:00
|
|
|
nativeBuildInputs = [ pkg-config ];
|
|
|
|
buildInputs = [
|
|
|
|
openssl
|
|
|
|
libevent
|
|
|
|
libprom
|
|
|
|
libpromhttp
|
|
|
|
libmicrohttpd
|
|
|
|
];
|
2016-06-21 11:59:29 +01:00
|
|
|
|
2020-04-29 00:11:43 +01:00
|
|
|
patches = [
|
|
|
|
./pure-configure.patch
|
|
|
|
];
|
2016-06-21 11:59:29 +01:00
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "https://coturn.net/";
|
2016-06-21 11:59:29 +01:00
|
|
|
license = with licenses; [ bsd3 ];
|
|
|
|
description = "A TURN server";
|
|
|
|
platforms = platforms.all;
|
2018-10-21 21:29:02 +01:00
|
|
|
broken = stdenv.isDarwin; # 2018-10-21
|
2021-01-11 10:27:59 +00:00
|
|
|
maintainers = with maintainers; [ ralith _0x4A6F ];
|
2016-06-21 11:59:29 +01:00
|
|
|
};
|
|
|
|
}
|