depot/third_party/nixpkgs/pkgs/servers/coturn/default.nix
Default email b96e6f4393 Project import generated by Copybara.
GitOrigin-RevId: 20887e4bbfdae3aed6bfa1f53ddf138ee325515e
2021-07-03 21:40:35 -05:00

48 lines
864 B
Nix

{ lib
, stdenv
, fetchFromGitHub
, fetchpatch
, openssl
, libevent
, pkg-config
, libprom
, libpromhttp
, libmicrohttpd
, nixosTests
}:
stdenv.mkDerivation rec {
pname = "coturn";
version = "4.5.2";
src = fetchFromGitHub {
owner = "coturn";
repo = "coturn";
rev = version;
sha256 = "1s7ncc82ny4bb3qkn3fqr0144xsr7h2y8xmzsf5037h6j8f7j3v8";
};
nativeBuildInputs = [ pkg-config ];
buildInputs = [
openssl
libevent
libprom
libpromhttp
libmicrohttpd
];
patches = [
./pure-configure.patch
];
passthru.tests.coturn = nixosTests.coturn;
meta = with lib; {
homepage = "https://coturn.net/";
license = with licenses; [ bsd3 ];
description = "A TURN server";
platforms = platforms.all;
broken = stdenv.isDarwin; # 2018-10-21
maintainers = with maintainers; [ ralith _0x4A6F ];
};
}