2021-01-15 22:18:51 +00:00
|
|
|
{ lib
|
|
|
|
, stdenv
|
|
|
|
, fetchFromGitHub
|
|
|
|
, fetchpatch
|
|
|
|
, openssl
|
|
|
|
, libevent
|
|
|
|
, pkg-config
|
|
|
|
, libprom
|
|
|
|
, libpromhttp
|
|
|
|
, libmicrohttpd
|
|
|
|
}:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "coturn";
|
2021-01-15 22:18:51 +00:00
|
|
|
version = "4.5.2";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "coturn";
|
|
|
|
repo = "coturn";
|
|
|
|
rev = version;
|
2021-01-15 22:18:51 +00:00
|
|
|
sha256 = "1s7ncc82ny4bb3qkn3fqr0144xsr7h2y8xmzsf5037h6j8f7j3v8";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
nativeBuildInputs = [ pkg-config ];
|
|
|
|
buildInputs = [
|
|
|
|
openssl
|
|
|
|
libevent
|
|
|
|
libprom
|
|
|
|
libpromhttp
|
|
|
|
libmicrohttpd
|
|
|
|
];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2020-05-03 17:38:23 +00:00
|
|
|
patches = [
|
|
|
|
./pure-configure.patch
|
|
|
|
];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
homepage = "https://coturn.net/";
|
|
|
|
license = with licenses; [ bsd3 ];
|
|
|
|
description = "A TURN server";
|
|
|
|
platforms = platforms.all;
|
|
|
|
broken = stdenv.isDarwin; # 2018-10-21
|
2021-01-15 22:18:51 +00:00
|
|
|
maintainers = with maintainers; [ ralith _0x4A6F ];
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|