mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-29 00:53:57 +00:00
5df1e9d93d
Adds passthru.tests.coturn = nixosTests.coturn;
49 lines
864 B
Nix
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 ];
|
|
};
|
|
}
|