1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-29 00:54:11 +00:00
nixpkgs/pkgs/servers/coturn/default.nix
matthewcroughan 5df1e9d93d coturn: add test for static-auth-secret-file
Adds passthru.tests.coturn = nixosTests.coturn;
2021-07-03 08:33:39 +01:00

49 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 ];
};
}